Results 1 to 4 of 4
- 07-28-2007, 11:18 PM #1
Member
- Join Date
- Jul 2007
- Posts
- 23
- Rep Power
- 0
Signing An Applet!!!!! Me Need Help!!!!! Plz!
OK OK OK OK!!!!!!
i know how to sign an applet, but its a problem with the applet i am having!!!!!!!!!!!!
first i create the class of the applet (italics is cmd commands)
javac MyApplet.java
(you can also open your .java applet with the javac.exe located in the bin directory of your JDK)
that creates the .class.. than i make that into a .jar
first i copy the entire bin directory of my JDK directory to the directory of the .java/.class i am signing
jar cvf MyApplet.jar MyApplet.class
and then i validate the jar
keytool -genkey -alias MyApplet -validity 365
and then i sign it.. to sign u do
jarsigner MyApplet.jar MyApplet
but when ever i do that, i always get a "error in method, cannot find 'main' method" type of error, and ITS NOT SUPPOSED TO DO THAT :mad: :mad: :mad:
if anyone has any info on what i might be doing wrong or what that ANNOYING error is please tell me.. my friend tried it and sais it works for him, so idk it might be my computer
I am running a Windows XP home eddition on a Dell Inspion 9400 notebook
(i know it might be the dell, dells are POS:mad: )
- 07-28-2007, 11:54 PM #2levent Guest
Don't you think this is strange? :) I don't recommend this. Try signing without moving whole JDK! Instead add bin directory of your JDK to PATH environment variable.first i copy the entire bin directory of my JDK directory to the directory of the .java/.class i am signing
- 07-29-2007, 02:02 AM #3
Member
- Join Date
- Jul 2007
- Posts
- 23
- Rep Power
- 0
kk now this is messed as it can get..
i signed the applet.. its signed.. when i made the html file it asks to i wanna trust the signature so ITS SIGNED
now.. the thing is, the I/O wont work.. my java.io.FileNotFoundExceptions says on it "File not found" (and then i made it so my program stops at that point).. anyway i put in the entire pathname to it (going right from C:\ instead of the native folder it is in) AND IT STILL DOESNT WORK so now i am stressed out
does anyone know why it wont work on the html doc? the extention is correct coz when i compiled it on my IDE it works and reads the file, but the html doc it doesnt!! PLEASE HELP
- 07-29-2007, 05:45 PM #4levent Guest
Similar Threads
-
signing applets for a period of time
By sandeepk84@gmail.com in forum Java AppletsReplies: 0Last Post: 12-04-2007, 01:34 PM -
First Applet HELP????
By nvidia in forum New To JavaReplies: 0Last Post: 08-13-2007, 10:11 PM -
Applet
By kapoorje in forum Java AppletsReplies: 0Last Post: 07-24-2007, 04:06 PM -
Unknown publisher / Signing standalone tomcat.exe
By millross in forum New To JavaReplies: 1Last Post: 06-14-2007, 02:25 PM -
Applet, To center text and To open I engage in a dialog in an Applet
By Marcus in forum Java AppletsReplies: 4Last Post: 06-08-2007, 06:15 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks