Manifest in JOGL 1.1b07

I’m getting a strange error when I’m trying to run my JOGL program (EDIT: compiling is no problem):

Exception in thread “main” java.lang.SecurityException: no manifiest section for signature file entry net/java/games/jogl/impl/GLContextStack.class
at sun.security.util.SignatureFileVerifier.verifySection(Unknown Source)
at sun.security.util.SignatureFileVerifier.process(Unknown Source)
at java.util.jar.JarVerifier.processEntry(Unknown Source)
at java.util.jar.JarVerifier.update(Unknown Source)
at java.util.jar.JarFile.initializeVerifier(Unknown Source)
at java.util.jar.JarFile.getInputStream(Unknown Source)
at sun.misc.URLClassPath$5.getInputStream(Unknown Source)
at sun.misc.Resource.getBytes(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

What is this? ???

I’ve discovered that this problem only occurs when I compile and run the program using JOGL versions 1.1b4 and upwards. JOGL version 1.1b3 works fine… I’m really confused here, I cannot find any post regarding this matter. Mayby it has something to do me using JBuilder as IDE… However, I’ve noticed that starting from JOGL 1.1b4, two additional files have been added in the meta-inf directory:

zigbert.sf
zigbert.rsa

In addition, the file “Manifest.mf” found in the 1.1b3 jar-files has been renamed to “manifest.mf” (with all lowercase letters) in later versions…

Anyone got a clue to whats going on?

The JOGL jar files distributed in the Downloads and Files section of jogl.dev.java.net have been signed for a few releases. I don’t remember exactly in which release we started signing them, but they are identical to the versions which can be referenced via Java Web Start. This is done for the demos at http://jogl-demos.dev.java.net/ .

It looks like a problem with the JRE you are using to launch JOGL programs. Are you using (or is JBuilder using) 1.4.2 or later?

I came across this thread whilst googling the same jogl security exception problem, and thought I’d post my solution for Those Who Follow.

I was able to solve the problem be removing the entire META-INF folder from the jar file, and removing the META-INF folder from my build environment.

Cheers!