Error with new 11/11/05 nightly build

I was converting an existing implementation to work with the nightly build (11/11/05), it shows error during compilation using the following declaration:


GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());

Then I changed to:

GLCanvas canvas = new GLCanvas();

it compiles fine but produce the following stack trace:


Exception in thread "main" java.lang.UnsatisfiedLinkError: no jogl_awt in java.library.path
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
	at java.lang.Runtime.loadLibrary0(Runtime.java:821)
	at java.lang.System.loadLibrary(System.java:1030)
	at com.sun.opengl.impl.NativeLibLoader$2.run(NativeLibLoader.java:97)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.opengl.impl.NativeLibLoader.loadAWTImpl(NativeLibLoader.java:79)
	at com.sun.opengl.impl.JAWT.getJAWT(JAWT.java:91)
	at com.sun.opengl.impl.x11.X11GLDrawableFactory.lockToolkit(X11GLDrawableFactory.java:357)
	at com.sun.opengl.impl.x11.X11GLDrawableFactory.getDisplayConnection(X11GLDrawableFactory.java:378)
	at com.sun.opengl.impl.x11.X11GLDrawableFactory.isMultisampleAvailable(X11GLDrawableFactory.java:395)
	at com.sun.opengl.impl.x11.X11GLDrawableFactory.chooseGraphicsConfiguration(X11GLDrawableFactory.java:108)
	at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:112)
	at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:84)
	at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:77)
	at demos.gears.Gears.main(Gears.java:20)

I checked with 11/11/05 Gears demo also, it shows the same error no jogl_awt in java.library.path as above.

The AWT-specific native code for JOGL has been separated out into its own shared library. You need to download the jogl-natives-*.jar for your platform and unpack it into a directory on your LD_LIBRARY_PATH.