Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-29-2007, 12:18 AM
Member
 
Join Date: Jul 2007
Posts: 23
marco is on a distinguished road
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

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 )
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-29-2007, 12:54 AM
Senior Member
 
Join Date: Dec 2006
Posts: 748
levent is on a distinguished road
Quote:
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.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-29-2007, 03:02 AM
Member
 
Join Date: Jul 2007
Posts: 23
marco is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 07-29-2007, 06:45 PM
Senior Member
 
Join Date: Dec 2006
Posts: 748
levent is on a distinguished road
Let us see the applet code!
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
signing applets for a period of time sandeepk84@gmail.com Java Applets 0 12-04-2007 02:34 PM
First Applet HELP???? nvidia New To Java 0 08-13-2007 11:11 PM
Applet kapoorje Java Applets 0 07-24-2007 05:06 PM
Unknown publisher / Signing standalone tomcat.exe millross New To Java 1 06-14-2007 03:25 PM
Applet, To center text and To open I engage in a dialog in an Applet Marcus Java Applets 4 06-08-2007 07:15 AM


All times are GMT +3. The time now is 06:13 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org