Under SUSE-10 linux in 586 machine after downloading nightly build 1.1.1 of JOGL I get the following error using
both java.library.path and LD_LIBRARY_PATH pointing to the locations of the JOGL .so natives:
java.lang.UnsatisfiedLinkError: /users/tobi/jAER/host/java/JNI/libjogl_awt.so: Can’t load IA 32-bit .so on a IA 32-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at com.sun.opengl.impl.NativeLibLoader$DefaultAction.loadLibrary(NativeLibLoader.java:78)
at com.sun.opengl.impl.NativeLibLoader.loadLibrary(NativeLibLoader.java:101)
at com.sun.opengl.impl.NativeLibLoader.access$100(NativeLibLoader.java:47)
at com.sun.opengl.impl.NativeLibLoader$2.run(NativeLibLoader.java:130)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.opengl.impl.NativeLibLoader.loadAWTImpl(NativeLibLoader.java:116)
at com.sun.opengl.impl.JAWT.getJAWT(JAWT.java:91)
at com.sun.opengl.impl.x11.X11GLDrawableFactory.lockToolkit(X11GLDrawableFactory.java:551)
at com.sun.opengl.impl.x11.X11GLDrawableFactory.isXineramaEnabled(X11GLDrawableFactory.java:676)
at com.sun.opengl.impl.x11.X11GLDrawableFactory.chooseGraphicsConfiguration(X11GLDrawableFactory.java:134)
at javax.media.opengl.GLCanvas.(GLCanvas.java:113)
at javax.media.opengl.GLCanvas.(GLCanvas.java:82)
Here is my java startup script:
set the LD_LIBRARY_PATH intead of using java.library.path because this is reported to
cause problems when libraries use other libraries
LD_LIBRARY_PATH="$PWD/JNI"; export LD_LIBRARY_PATH
echo $LD_LIBRARY_PATH
run main class using paths relative to this path
#java -DJOGL_SINGLE_THREADED_WORKAROUND=false -Djava.library.path=JNI -Dsun.java2d.opengl=false -Dsun.java2d.noddraw=true -cp dist/jAER.jar:jars/spread.jar:jars/UsbIoJava.jar:jars/swing-layout-0.9.jar:jars/jogl.jar:jars/gluegen-rt.jar ch.unizh.ini.caviar.JAERViewer
java -Djava.library.path=${PWD}/JNI -Dsun.java2d.opengl=false -Dsun.java2d.noddraw=true -cp dist/jAER.jar:jars/spread.jar:jars/UsbIoJava.jar:jars/swing-layout-0.9.jar:jars/jogl.jar:jars/gluegen-rt.jar ch.unizh.ini.caviar.JAERViewer
Has anyone figured this out?
I’m using jogl-1.1.1-pre-20070503-linux-i586.zip