Login  Register

Re: JWebStart app signing problem

Posted by gouessej on Nov 21, 2014; 5:03pm
URL: https://forum.jogamp.org/JWebStart-app-signing-problem-tp4033596p4033600.html

Your jnlp file seems to be correct but the use of "nativelib" isn't mandatory with JOGL 2 (it was mandatory with JOGL 1). At first, if you make a mistake in the naming of an architecture, Java Web Start will be unable to load the correct native libraries. Moreover, there is a bug in Java Web Start that makes it fail to extract and load native libraries when the end user disables the cache or when its size is too small. I advise you to the "jar" JNLP tag for all JARs and then GlueGen will take care of picking the right libraries for you. The only drawback is that Java Web Start will download all native libraries instead of just the supported ones.

There is a spelling mistake in your jnlp file, replace "jjogl/ogl-all-natives-windows-i586.jar" by "jogl/jogl-all-natives-windows-i586.jar".

Use "keytool" to create your own certificate (only once) and use "jarsigner" to sign all JARs with the same certificate as you use a single jnlp file, you don't use any extension.

You might have to modify the "Trusted-Only" and "Trusted-Library" manifest attributes to make it work, use "jarsigner" to do it.

Edit.: The use of MP3 might require you to pay some fees, I advise you to use Paul Lamb Sound Library with its JOAL plugin and its OGG codec instead. Moreover, it works better under OpenJDK and JavaSound is quite buggy even under Windows.

Edit.2: Please use SVN or Git in your Sourceforge project to help people to look at your source code and see the changes more easily than with a zip. My own project is an Eclipse project, it's easy to make it work in Netbeans than make a Netbeans project work in Eclipse because Netbeans creates tons of files except when it is used with Maven.

Edit.3: The file Thumbs.db isn't very useful, maybe you should remove it from your ZIP archive. Your project should mention all licences (third party libraries and contents + yours). Why does Cliper extend JApplet?
Julien Gouesse | Personal blog | Website