Hi Chris,
Your sample class compiles just fine but I get an error when trying to run it with the new Java 1.4.2 for MacOS X. I am guessing that JOGL needs to be re-built for 1.4.2 on MacOS X.
I put the .jnilib and .jar files where you recommended in the article.
Here is the error, (any ideas?):
$ java JOGL2DBasics
constructor
Exception in thread "main" java.lang.UnsatisfiedLinkError: /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libjogl.jnilib:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1477)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at net.java.games.jogl.impl.NativeLibLoader$1.run(NativeLibLoader.java:60)
at java.security.AccessController.doPrivileged(Native Method)
at net.java.games.jogl.impl.NativeLibLoader.<clinit>(NativeLibLoader.java:46)
at net.java.games.jogl.impl.GLContext.<clinit>(GLContext.java:51)
at net.java.games.jogl.impl.macosx.MacOSXGLContextFactory.createGLContext(MacOSXGLContextFactory.java:52)
at net.java.games.jogl.GLCanvas.<init>(GLCanvas.java:68)
at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:117)
at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:80)
at JOGL2DBasics.<init>(JOGL2DBasics.java:25)
at JOGL2DBasics.main(JOGL2DBasics.java:44) |