thomasaaron
August 2nd, 2007, 02:54 AM
Hi, folks. I've got a problem getting an application to run with WebStart.
It is an application (not an applet).
I created a jnlp file that WILL successfully launch it -- as long as I don't put security tags in it. With security tags, I get this message when I try to launch it:
Unsigned application requesting unrestricted access to system...
and then it lists my .jar file.
Note: I actually DO want it to have unrestricted access.
So, I followed these directions from this page: http://java.sun.com/developer/technicalArticles/Programming/jnlp/
# Second, create a key in the keystore (or use one you already have). You'll be prompted for information like first name and last. You should at least fill in that information.
keytool -genkey -keystore myKeys -alias jdc
# Third, sign the JAR. Be sure to remember your password from the previous step.
jarsigner -keystore myKeys JNLPTime.jar jdc
When I run that last command, I get this error:
jarsigner error: java.lang.RuntimeException: keystore load: Invalid keystore format
I've done some googling on it, and I'm thinking it might be a version problem (I've had those with Java before). But if that is indeed the problem, I've not been able to figure out how to solve it.
NOTE: I wrote and compiled the application with Netbeans. Everything else I am doing from the command line.
Thanks for your help,
Tom
It is an application (not an applet).
I created a jnlp file that WILL successfully launch it -- as long as I don't put security tags in it. With security tags, I get this message when I try to launch it:
Unsigned application requesting unrestricted access to system...
and then it lists my .jar file.
Note: I actually DO want it to have unrestricted access.
So, I followed these directions from this page: http://java.sun.com/developer/technicalArticles/Programming/jnlp/
# Second, create a key in the keystore (or use one you already have). You'll be prompted for information like first name and last. You should at least fill in that information.
keytool -genkey -keystore myKeys -alias jdc
# Third, sign the JAR. Be sure to remember your password from the previous step.
jarsigner -keystore myKeys JNLPTime.jar jdc
When I run that last command, I get this error:
jarsigner error: java.lang.RuntimeException: keystore load: Invalid keystore format
I've done some googling on it, and I'm thinking it might be a version problem (I've had those with Java before). But if that is indeed the problem, I've not been able to figure out how to solve it.
NOTE: I wrote and compiled the application with Netbeans. Everything else I am doing from the command line.
Thanks for your help,
Tom