Hi there,
somehow i can't get this stuff working: import javax.media.opengl does not exist. i'm using netbeans 7.1.1 and the latest jogl (http://jogamp.org/deployment/jogamp-current/archive/jogamp-windows-amd64/ and there the file: jogl-windows-amd64.7z) (the sdk is installed on C:\Program Files\Java) (in the following post determined as \java) what i've done so far: extraced all the package into: java\jogl copied the files from \jogl\lib\ to java\jre6\bin added in a project a new library, JAR files location: C:\Program Files\Java\jogl\jar now i can't use import javax.media.opengl or com.jogl........ what the fuck i am doing wrong or i have overseen? :( |
ah sorry, i forgot this info:
on the project properties Run and VOM Option i added: -Djava.library.path=C:\Program Files\Java\jre6\lib |
In reply to this post by wolfomat
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. |
Administrator
|
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) 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 |
In reply to this post by LordSmoke
thanks, now i have the stuff available.
the problem was, i just selected the folder instead of all files, that was a mistake. now i can run my own tests, i'll post results here. and yes, the most things which i found were outdated, its a bit pitty..... |
Administrator
|
On 03/06/2012 09:29 AM, wolfomat [via jogamp] wrote:
> > > thanks, now i have the stuff available. > > the problem was, i just selected the folder instead of all files, that was a > mistake. > > now i can run my own tests, i'll post results here. great to hear! > > and yes, the most things which i found were outdated, its a bit pitty..... don't whine .. act and repair :) - your contribution is welcome sir! as mentioned, I can give you a wiki account if you like to help. it's always a great position to write user documents when you are not that familiar with the matter. I for myself often fail to see the forest .. :) ~Sven signature.asc (910 bytes) Download Attachment |
Administrator
|
In reply to this post by wolfomat
Porting things from JOGL 1 to JOGL 2 is not very difficult. Therefore, finding "outdated" resources is not the end of the world. The example in Wikipedia and most of examples in our wiki aren't outdated. I asked some webmasters to update their tutorials but only a few really did it.
Julien Gouesse | Personal blog | Website
|
In reply to this post by Sven Gothel
> don't whine .. act and repair :) - your contribution is welcome sir!
haha, that's what i always say to ppl :D > as mentioned, I can give you a wiki account if you like to help. well, please do so! |
Administrator
|
On 03/06/2012 04:04 PM, wolfomat [via jogamp] wrote:
> > >> don't whine .. act and repair :) - your contribution is welcome sir! > > haha, that's what i always say to ppl :D > >> as mentioned, I can give you a wiki account if you like to help. > > well, please do so! Awesome. Pls send your email and real world name to my email address. Then I will setup the account with that data. ~Sven signature.asc (910 bytes) Download Attachment |
In reply to this post by LordSmoke
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) |
Free forum by Nabble | Edit this page |