Results 1 to 4 of 4
  1. #1
    marco is offline Member
    Join Date
    Jul 2007
    Posts
    23
    Rep Power
    0

    Default 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: )

  2. #2
    levent Guest

    Default

    first i copy the entire bin directory of my JDK directory to the directory of the .java/.class i am signing
    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.

  3. #3
    marco is offline Member
    Join Date
    Jul 2007
    Posts
    23
    Rep Power
    0

    Default

    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

  4. #4
    levent Guest

Similar Threads

  1. signing applets for a period of time
    By sandeepk84@gmail.com in forum Java Applets
    Replies: 0
    Last Post: 12-04-2007, 01:34 PM
  2. First Applet HELP????
    By nvidia in forum New To Java
    Replies: 0
    Last Post: 08-13-2007, 10:11 PM
  3. Applet
    By kapoorje in forum Java Applets
    Replies: 0
    Last Post: 07-24-2007, 04:06 PM
  4. Unknown publisher / Signing standalone tomcat.exe
    By millross in forum New To Java
    Replies: 1
    Last Post: 06-14-2007, 02:25 PM
  5. Replies: 4
    Last Post: 06-08-2007, 06:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •