Login  Register

Re: Installing Bindings -> driving me crazy Oo

Posted by LordSmoke on Mar 06, 2012; 7:25am
URL: https://forum.jogamp.org/Installing-Bindings-driving-me-crazy-Oo-tp3802725p3802944.html

I wrestled with this most of the day yesterday - installing for Netbeans 7.1.1 on OS X. Partial success following instructions from website below). I unpacked the entire jogamp distribution (maybe unnecessary in retrospect), created a NB project JOGLQuad, created a Library in Netbeans called JOGL2.0, and added to it jogl.all.jar, gluegen-rt.jar, jogl-all-natives-macosx-universal.jar, newt.event.jar (from the atomic subdirectory), added that to the libraries for JOGLQuad.

This allowed me to run the sample code at http://www.leolol.com/drupal/tutorials/3d-graphics-jogl-opengl-etc/jogl-2-lesson-1-setup-and-introduction.

It runs, but first gives the following never-before-seen errors and locks the system for a while. Same behavior from NB and command line in /dist.

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)


I went on to try (by mistake, I suppose) to run the code from Lesson 2 for JOGL 1.x, but problems with finding GLUT. Since I am trying to learn jogl, I don't know how to modify 1.x code to run under 2, and there is a frustrating lack of easy-to-find sample code to study and make sure everything is in place and running. I am also very frustrated by the lack of date info on webpages. I found lots of promising leads, but often they were years out of date.