Skip to main content

UnsatisfiedLinkError with JOGL on Mac OS 10.6

2 replies [Last post]
pbierre
Offline
Joined: 2006-08-12

My Java3D app has been running for years under MacOS 10.5. I just got a iMac running 10.6. I used the Migration Assist to port everything to the new iMac.

I get this launch time error, regardless of whether I specify the 1.6.0 JRE (MacOS Default) or the 1.5.0 JRE ported over by the Migration Assist.
What does this mean?

Exception in thread "J3D-Renderer-1" java.lang.UnsatisfiedLinkError: /Library/Java/Extensions/libjogl.jnilib: no suitable image found. Did find: /Library/Java/Extensions/libjogl.jnilib: no matching architecture in universal wrapper
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1823)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1712)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
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$1.run(NativeLibLoader.java:109)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.opengl.impl.NativeLibLoader.loadCore(NativeLibLoader.java:107)
at com.sun.opengl.impl.macosx.MacOSXGLDrawableFactory.(MacOSXGLDrawableFactory.java:53)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:108)
at javax.media.j3d.JoglPipeline$QueryCanvas.(JoglPipeline.java:9010)
at javax.media.j3d.JoglPipeline.getBestConfiguration(JoglPipeline.java:8774)
at javax.media.j3d.Renderer.doWork(Renderer.java:495)
at javax.media.j3d.J3dThread.run(J3dThread.java:256)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ralphld
Offline
Joined: 2010-08-02

I don't use a Mac, but this looks like your problem. "the proper import path" is listed towards the bottom of the page.

http://gpwiki.org/index.php/Talk:OpenGL:Tutorials:Java:JOGL:Introduction

HTH
Ralph

pbierre
Offline
Joined: 2006-08-12

Thanks, Ralph, but I fixed this myself. The operative clue was using Migration Assistant to clone a new iMac from an older one running OS 10.5.8.

The MacOS made some changes to the Java environment going from OS 10.5 --> 10.6.

I compared my system Java folders to those on a pristine Mac OS 10.6 rig, and found the extraneous files in Library / Java / Extensions.

On a std. OS 10.6 rig, this folder is empty. I cleaned out all the files put there by Migr Asst. and it completely cleared up the problem, both running my app and the many "Test Java 3D" websites. I sent a bug report to Apple with the fix for Migration Assistant.

Pierre