Login  Register

Re: Installing Bindings -> driving me crazy Oo

Posted by LordSmoke on Mar 11, 2012; 10:05am
URL: https://forum.jogamp.org/Installing-Bindings-driving-me-crazy-Oo-tp3802725p3816439.html

LordSmoke wrote
...
run:
java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:127)
        at java.util.jar.JarFile.<init>(JarFile.java:135)
        at java.util.jar.JarFile.<init>(JarFile.java:72)
        at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:72)
        at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:48)
        at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:55)
        at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104)
        at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71)
        at com.jogamp.common.util.JarUtil.getJarFile(JarUtil.java:294)
        at com.jogamp.common.util.cache.TempJarCache.bootstrapNativeLib(TempJarCache.java:346)
        at com.jogamp.common.os.Platform$3.run(Platform.java:312)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.jogamp.common.os.Platform.loadGlueGenRTImpl(Platform.java:303)
        at com.jogamp.common.os.Platform.<clinit>(Platform.java:214)
        at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:81)
        at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:236)
        at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:186)
        at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:176)
        at joglquad.JOGLQuad.<clinit>(JOGLQuad.java:28)
Catched: error in opening zip file
Catched: error in opening zip file
Catched: error in opening zip file
Catched: error in opening zip file
Catched: error in opening zip file
Catched: error in opening zip file
BUILD SUCCESSFUL (total time: 31 seconds)
...
FWIW, I have made progress on the above. I downloaded and built the latest (IIRC) repository (https://github.com/sgothel/jogl.git). The build worked well, and the test hung a few times with jre crashes, but eventually ran to completion. Redirecting my JOGL2 library in my programs to the new files (and using the new libs in /Library/Java/Extensions) eliminated the most verbose part of the zip error and the program loads MUCH faster. From the command line (only a single "Catched:..." in NetBeans), I still get, though,:

Catched: error in opening zip file
Catched: error in opening zip file
Catched: error in opening zip file
Catched: error in opening zip file
Catched: error in opening zip file
Catched: error in opening zip file
Catched: error in opening zip file
JOGL Detected...

The detection code I am using (which seems to work) is:

                try {
                    GLProfile.initSingleton();
                    hasJOGL2 = true;
                    System.out.print("JOGL Detected...\n");
                } catch (Error e) {
                    hasJOGL2 = false;
                    System.out.print("JOGL Not detected...\n");
                }

==================================================
environment
==================================================
Mac OS X 10.6.8
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-10M3527)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
NetBeans 7.1.1
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)