Login  Register

Re: Installing Bindings -> driving me crazy Oo

Posted by Sven Gothel on Mar 06, 2012; 8:15am
URL: https://forum.jogamp.org/Installing-Bindings-driving-me-crazy-Oo-tp3802725p3803001.html

On 03/06/2012 08:25 AM, LordSmoke [via jogamp] wrote:

>
>
> 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 have to try NB with our new native jar loading mechanism.
However, iff:
 - the java JARs and the native JARs reside in the same folder
 - have the original filename
 - the java JARs are included in the CLASSPATH (via IDE etc)

it should just work (no 'catched exception') and no need to
add the plain native library folder to the lib-path manually.

This is how our NApplet loading mechanism works (JOGL Test Applets)
at <http://jogamp.org/deployment/jogamp-current/jogl-test-applets.html>.

A pre RC6 is available here:
  <http://jogamp.org/deployment/jogamp-test/jogl-test-applets.html>
  <http://jogamp.org/deployment/jogamp-test/archive/>
Just dl the
<http://jogamp.org/deployment/jogamp-test/archive/jogamp-all-platforms.7z> it
includes all files for all platforms.


>
>
> 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.

We have a 'few' demos under jogl-demos,
which should work well under Eclipse and NB.



signature.asc (910 bytes) Download Attachment