Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Signing Jars from within Java Code

843811Mar 18 2002 — edited Mar 21 2002
Hi,

I would like to sign a jar file from within my Java code. Reason for this is that I wish to update a jar file at runtime, throw away the class loader that loaded the jar, and load the updated code inside a new classloader.

One problem, however: The jar file has to be signed before loading it. How can I do this from my Java program? Or do I need to have the jarsigner tool available at the location where I resign the jar?

Thanks in advance,
Ronald.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 18 2002
Added on Mar 18 2002
1 comment
127 views