Re: Can't Initialize!
Posted by
Wade Walker on
Jan 14, 2011; 8:12pm
URL: https://forum.jogamp.org/Can-t-Initialize-tp2112742p2258082.html
Hi François,
I've got detailed instructions on how to set up a JOGL 2 project in Eclipse using RCP at
http://wadeawalker.wordpress.com/2010/10/09/tutorial-a-cross-platform-workbench-program-using-java-opengl-and-eclipse/.
Or, if you're not making an RCP application, here's what you need to do:
- Right-click your Eclipse project, select Properties
- Select "Java Build Path", then click the Libraries tab
- Click "Add JARs..." (if your JARs and .so files are in your project directory), or click "Add External JARs..." (if your JARs and .so files are outside your project directory)
- Add gluegen-rt.jar, jogl.all.jar, nativewindow.all.jar, and newt.all.jar this way
- For each JAR in your list, click the arrow to expand it, select "Native library location" inside it, click "Edit...", and set the "location path" to the directory that contains all your .so files. There should be 7 *.so files in the directory (libgluegen-rt.so, libjogl_desktop.so, libjogl_es1.so, libjogl_es2.so, libnativewindow_awt.so, libnativewindow_x11.so, libnewt.so)
Once this works properly, you can try removing the JARs and .so files one at a time to find the minimum you need