Re: Can't Initialize!
Posted by François Coupal on Jan 17, 2011; 8:12pm
URL: https://forum.jogamp.org/Can-t-Initialize-tp2112742p2275101.html
It was faster than I anticipated, but I got the culprit. It was not a native library thing actually: it was a missing class. I don't know which one exactly, but I do know which package it was part of.
For those interrested, I managed to run the simple program above (whithout the duplicate system loading of native libraries), which is simply to execute the "GLProfile.iniSingleton(boolean)" method, with the following files:
Java modules:
gluegen-rt.jar
jogl.core.jar
jogl.gldesktop.jar (this was the missing file that caused the NullPointerException)
jogl.os.x11.jar
nativewindows.core.jar
nativewindows.os.x11.jar
Native libraries:
libgluegen-rt.so
libjogl_desktop.so
libnativewindows_awt.so
libnativewindows_x11.so
Total size: 1.1 MB
You can probably use NEWT instead of AWT to achieve the same effect. You'll have to vary the packages for different OSes, both native and java.
In any case, this is the absolute minimal file config I could initialize JOGL 2 on Ubuntu. I'll add libraries to these for my big project until it works.
Again, thanks for the help. See ya on another thread :-)