Posted by
Sven Gothel on
Oct 20, 2011; 12:20am
URL: https://forum.jogamp.org/setting-up-JOGL-in-Eclipse-on-Mac-OSX-Lion-Frustration-tp3435692p3436274.html
On Wednesday, October 19, 2011 10:53:58 PM TC [via jogamp] wrote:
>
> So I've gone through about 3 different tutorials I've found on the net
As Julien explains, please reflect our docs/wiki here,
which may also lead to point out bugs we have - so we can fix them.
> and I
> have a few questions.
>
> 1. What jars do I put in my user library in Eclipse? Right now I have
> gluegen-rt.jar, jogl.all.jar, newt.event.jar, and
> nativewindow.core.jar.
Starting w/ RC3
http://jogamp.org/deployment/v2.0-rc3/archive/the JAR files are described here:
http://jogamp.org/wiki/index.php/Jogamp_Versioning_and_Releases#Release_and_Archived_Fileshttp://jogamp.org/jogl/doc/deployment/JOGL-DEPLOYMENT.html#NativeJARFileNameConventionIn short, you would need gluegen-rt.jar and jogl.all.jar
plus the single native library files (not as a JAR).
Then follow the receipe Julien already pointed out:
http://jogamp.org/wiki/index.php/Setting_up_a_JogAmp_project_in_your_favorite_IDEMind that you now can attach the source files to the JAR (netbeans/eclipse/..),
ie jogl-java-src.zip to jogl.all.jar. This will allow you to see the proper JOGL
API doc (on-the-fly generated javadoc) plus you can debug code w/ source
or just browse through code to get a better understanding of it's meaning.
The currently pre RC4 version, ie available here:
http://jogamp.org/deployment/archive/master/gluegen_424-joal_228-jogl_526-jocl_455/archive/also adds the capability of using the native JAR files with any launching method,
as described here:
http://jausoft.com/blog/2011/09/23/jogamp-deployment-enhancements-automatic-loading-of-native-jars-appletapplication/just drop the native jar files where the pure java jar files resides, ie:
/home/dude/myproject/lib/jogamp/
gluegen-java-src.zip
gluegen-rt.jar
gluegen-rt-natives-solaris-i586.jar
gluegen-rt-natives-solaris-amd64.jar
gluegen-rt-natives-macosx-universal.jar
gluegen-rt-natives-linux-amd64.jar
gluegen-rt-natives-windows-amd64.jar
gluegen-rt-natives-linux-i586.jar
gluegen-rt-natives-windows-i586.jar
jogl-java-src.zip
jogl.all.jar
jogl-all-natives-linux-amd64.jar
jogl-all-natives-windows-amd64.jar
jogl-all-natives-linux-i586.jar
jogl-all-natives-windows-i586.jar
jogl-all-natives-macosx-universal.jar
jogl-all-natives-solaris-amd64.jar
jogl-all-natives-solaris-i586.jar
Same procedure, use gluegen-rt.jar and jogl.all.jar,
attach their source zip files to them and you are done.
Here, you don't need to take care about the single native library files anymore.
The right (os.and.arch) native JAR files are being picked up automatically.
I hope this helps.
Soon (RC4) we will update the wiki pages in this regard.
Maybe somebody (ie you?) like to volunteer and do it ?
Cheers, Sven