Is it possible to sign a jr file from a java program?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, June 6, 2002 12:58 PM

I have a jar file and I have the passphrase. But is it possible to do it from within a java program. If I run a .bat file it'll wait for somebody to enter the paraphrase.

Re: Is it possible to sign a jr file from a java program?

Posted By:   Lasse_Badlund  
Posted On:   Tuesday, June 11, 2002 05:03 AM

Even though I haven't tested it myself, it shouldn't be impossible to make a system call to 'jarsigner' from within a Java application.


You might want to use the method

public Process java.lang.Runtime.exec(String[] cmdarray) throws IOException


Remember to submit all the arguments (for example the passphrase) when calling jarsigner!





Regards,

Lasse
About | Sitemap | Contact