UnsatisfiedLinkError on Mac OS X 10.4

I’m getting the following error (below) when running any JOGL program from the command line. The demos run fine when launched from the web site using JWS, however, the demos give the below error when run from the command line. The jogl and jogl_cg libraries are in the correct location and load correctly (tested using System.loadLibrary, and verified because I get a different error when native libraries are removed). This error started after upgrading to Mac OS X 10.4.

I’m running on a Mac OS X 10.4.1 on a Powerbook G4 (15"). (Java 1.5 is installed, but I’m not using it.)


apple.awt.EventQueueExceptionHandler Caught Throwable : java.lang.UnsatisfiedLinkError: createContext
java.lang.UnsatisfiedLinkError: createContext
        at net.java.games.jogl.impl.macosx.CGL.createContext(Native Method)
        at net.java.games.jogl.impl.macosx.MacOSXGLContext.create(MacOSXGLContext.java:133)
        at net.java.games.jogl.impl.macosx.MacOSXGLContext.makeCurrent(MacOSXGLContext.java:158)
        at net.java.games.jogl.impl.macosx.MacOSXOnscreenGLContext.makeCurrent(MacOSXOnscreenGLContext.java:137)
        at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:246)
        at net.java.games.jogl.impl.macosx.MacOSXOnscreenGLContext.invokeGL(MacOSXOnscreenGLContext.java:81)
        at net.java.games.jogl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:228)
        at net.java.games.jogl.GLCanvas.display(GLCanvas.java:75)
        at net.java.games.jogl.GLCanvas.paint(GLCanvas.java:84)
        at sun.awt.RepaintArea.paint(RepaintArea.java:194)
        at apple.awt.ComponentModel.handleEvent(ComponentModel.java:290)
        at java.awt.Component.dispatchEventImpl(Component.java:3744)
        at java.awt.Component.dispatchEvent(Component.java:3543)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)  

I think you have mismatched versions of jogl.jar and libjogl.jnilib.