File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Problem signing executable jar's Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Problem signing executable jar Watch "Problem signing executable jar New topic

Problem signing executable jar's

Dave Robbins
Ranch Hand

Joined: Sep 16, 2003
Posts: 131
Hello All,
I want to deploy an app as a webstart application that will need to be signed
I've floowed these directions to create an executable jar file
at this point it runs properly from the command line
java -jar myapp.jar
but when I sign it, it stops runing, I get this error
Failed to load Main-Class manifest attribute from myapp.jar
I used these direction for creating the key
and everything seems to work correctly except that tricky part at the end where my app wont run

here are my commands to create and sign the jar
jar cmf mainClass myapp.jar myapp
now it runs with this "java -jar myapp.jar"
jarsigner -keystore keystore myapp.jar me

now "java -jar myapp.jar" fails
Any Ideas???
I agree. Here's the link:
subject: Problem signing executable jar's
It's not a secret anymore!