This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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

Win a copy of Elasticsearch in Action this week in the Big Data forum!
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???
It is sorta covered in the JavaRanch Style Guide.
subject: Problem signing executable jar's