File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Sign jar files" Watch "Sign jar files" New topic

Sign jar files

Raed Qudaisat

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?

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. 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

Joined: Dec 28, 2005
Posts: 7
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?

I agree. Here's the link:
subject: Sign jar files
It's not a secret anymore!