Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (538)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (600)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Applet Signing problem with singletons  (Read 823 times)
0 Members and 1 Guest are viewing this topic.
Offline roland
« Posted 2009-10-23 23:25:23 »

Hi, I can sign my applets now and they work when I make small, 1 class programs. But when I make try to sign big applications or ones with Singleton classes it doesnt work. Does anyone know why?
Offline Karmington

Senior Devvie


Medals: 1
Projects: 1


Co-op Freak


« Reply #1 - Posted 2009-10-26 19:09:49 »

suggest using 'ant' to compile the jars, and then signing the whole jar. Never had any problems with it.

Offline roland
« Reply #2 - Posted 2009-11-03 06:15:53 »

thanks for the reply

I'm using Eclipse 3.4.1
Is the default jar builder ant? or do i have to change the exporter somehow / download a plugin?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Karmington

Senior Devvie


Medals: 1
Projects: 1


Co-op Freak


« Reply #3 - Posted 2009-11-03 07:01:30 »

I haven't actually signed any eclipse built jars directly,
antenna is really meant for J2ME but it's handy to
create alternative builds.
http://antenna.sourceforge.net/

Here's an example of how I work with it, but I think some
feedback from people who sign jars straight off eclipse would be welcome also.

(ForceDel is a hack to delete the old junk from underneath, could be done cleaner)

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
<project name="Build jars" default="build_jar_applet" basedir=".">
<property name="output_dir" value="jars"/>
<property name="output_jar_udpclient" value="jars/udpclient.jar"/>
<property name="output_jar_udpserver" value="jars/udpserver.jar"/>

<target name="build_jar_udpclient">
   <mkdir dir="${output_dir}"/>
   <exec executable="utils/ForceDel.exe">
      <arg line="${output_jar_udpclient}"/>
   </exec>
   <jar jarfile="${output_jar_udpclient}">
       <fileset dir="bin/" includes="**/*.class"/>
      <fileset dir="../archon_common/bin/" includes="**/*.class"/>
   </jar>
   <signjar jar="${output_jar_udpclient}" alias="archon" storepass="secret" keystore="archon.keystore"/>
</target>

<target name="build_jar_udpserver">
   <mkdir dir="${output_dir}"/>
   <exec executable="utils/ForceDel.exe">
      <arg line="${output_jar_udpserver}"/>
   </exec>
   <jar jarfile="${output_jar_udpserver}">
       <fileset dir="bin/" includes="**/*.class"/>
      <fileset dir="../archon_common/bin/" includes="**/*.class"/>
   </jar>
   <signjar jar="${output_jar_udpserver}" alias="archon" storepass="secret" keystore="archon.keystore"/>
</target>

<target name="gen_keys">
   <genkey alias="archon" storepass="secret" keystore="archon.keystore">
      <dname>
          <param name="CN" value="SNS Company Ltd."/>
          <param name="OU" value=""/>
          <param name="O"  value="slicksandslide.com"/>
          <param name="C"  value="FI"/>
        </dname>
   </genkey>
</target>
   
</project>


presume you've read http://www-personal.umich.edu/~lsiden/tutorials/signed-applet/signed-applet.html
Can you give more clues, error messages etc?
Maybe make a tiny test with 2 classes. I don't remember a static class being forbidden explicitly...


Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (29 views)
2014-12-15 09:26:44

Mr.CodeIt (20 views)
2014-12-14 19:50:38

BurntPizza (40 views)
2014-12-09 22:41:13

BurntPizza (75 views)
2014-12-08 04:46:31

JscottyBieshaar (37 views)
2014-12-05 12:39:02

SHC (50 views)
2014-12-03 16:27:13

CopyableCougar4 (47 views)
2014-11-29 21:32:03

toopeicgaming1999 (113 views)
2014-11-26 15:22:04

toopeicgaming1999 (100 views)
2014-11-26 15:20:36

toopeicgaming1999 (30 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!