Question

I have a java web start app that uses Swing and needs to allow a user to open a file local on their machine. My application is failing to run because it says that the the single jar I am trying to use is unsigned. I did however, sign it.

In my .jnlp file I am specifying security as:

<security>
    <j2ee-application-client-permissions/>
</security>

and I used the following commands to create the keystoare sign my jar file, validator.jar:

keytool -genkey -keystore mykeys -alias https://www.mydomain.com
jarsigner -keystore mykeys -storetype JKS validator.jar https://www.mydomain.com

Any ideas?

Thanks!

Was it helpful?

Solution 2

@Tom Since I only need to allow the user to open a file locally for processing, I decided to use the FileOpenService. Thanks for the help.

OTHER TIPS

do you have the APPLICATION.JNLP file that is the same (has the same exact content) of your jnlp file that is included in the signed jar?

it would be located in your resources/JNLP-INF directory.

also- are you using maven?

maven has plugins to help with signing jnlps

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top