Problem with jsr231 on a 64 bit machine

I was sending some compiled code to my friend with everything scripted to automatically set library paths etc so all he would have to do is launch a shell script, and he got an error. The first time, he got an error complaining about a Wrong ELF class “ELFCLASS32”. After this I figured out he was running an AMD 64, so he downloaded the beta 5 natives for linux and AMD 64, and he got another ELF class error. Here is the error.

Exception in thread “main” java.lang.UnsatisfiedLinkError: /home/mephibosheth/finaldist/lib/natives/libjogl_drihack.so: /home/mephibosheth/finaldist/lib/natives/libjogl_drihack.so: wrong ELF class: ELFCLASS64
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:992)
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$3.run(NativeLibLoader.java:141)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.opengl.impl.NativeLibLoader.loadDRIHack(NativeLibLoader.java:139)
at com.sun.opengl.impl.x11.DRIHack.begin(DRIHack.java:105)
at com.sun.opengl.impl.x11.X11GLDrawableFactory.(X11GLDrawableFactory.java:66)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:111)
at javax.media.opengl.GLCanvas.(GLCanvas.java:113)
at javax.media.opengl.GLCanvas.(GLCanvas.java:82)
at javax.media.opengl.GLCanvas.(GLCanvas.java:75)
at com.faceinthesword.rolegamer.glview.GameView.(GameView.java:57) at com.faceinthesword.rolegamer.glcontrol.RoleControl.(RoleControl.java:52)
at com.faceinthesword.rolegamer.RoleGamer.(RoleGamer.java:50)
at com.faceinthesword.rolegamer.RoleGamer.main(RoleGamer.java:54)

As you can see, it is now ELFCLASS64. It seems that changing the natives should have solved the problem, but found out otherwise. The graphics card he is using is a Radeon 9000, it is the exact same card I used for testing the initial dri-hack native for linux (I switched to NVidia for linux reasons). He is running Fedora Core 5, and I am unaware as to whether he has SE Linux enabled or not.

Thanks,

What is the complete output of “java -version” on this machine?

You should be able to run the 32-bit JDK on an AMD64 machine with no problems, and use the Linux/i586 build of JOGL there as well. I’d recommend trying to get that configuration to work as the Linux/AMD64 build of JOGL has only been lightly tested.