This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes Sign jar files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Sign jar files" Watch "Sign jar files" New topic
Author

Sign jar files

Raed Qudaisat
Greenhorn

Joined: Dec 28, 2005
Posts: 7
Hello all.
i have been tired searching for this, and i didn't find the answer.

what exactly should i do to sign a jar file? and where to place the signed jar?

i have created a keystore using the keytool and used it in the jarsigner but still i can't read files from the client's system!!!

any one has an answer?

Thanks.
Raed
prateek urmaliya
Ranch Hand

Joined: Sep 15, 2006
Posts: 87
Hi Raed,

Are you building through ant if so you can use signjar task .
I am using it while generating jnlp.
jnlp.work.dir can be replaced with wherever you pick your jars from.

[ January 31, 2007: Message edited by: prateek urmaliya ]

this message brought to you by .... PIE! .... it's yummy! ;)
Raed Qudaisat
Greenhorn

Joined: Dec 28, 2005
Posts: 7
hello
thank you very much for your reply.
i am not using the ant tool, i am building the jars with the jar tool. i will give you more details.

-first i am using linux.
-i have built the jar files using

-then i have used the keytool to create the key like this.

it prompted me for the alias password and i made it raedpass.
-then i used the jarsigner tool like this.


that is it, now what i want is to be able to read file from the client system, is that possible?

should i copy the jars to the client machine? or just put them on the server?

Thanks.
Raed
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Sign jar files
 
Similar Threads
Sign .jar file using existing signed .jar file
Sign Jar using Existing Jar
Applet .jar files and libraries
Problem on Applet connecting to JMS
how to sign jar files