Can't get JOAL working on Mac

I’ve been using JOAL successully on a PC but now that I am trying to run the same project on a MAC I get following error:

Exception in thread “main” java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at com.sun.gluegen.runtime.NativeLibLoader$1.run(NativeLibLoader.java:68)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.gluegen.runtime.NativeLibLoader.loadGlueGenRT(NativeLibLoader.java:66)
at com.sun.gluegen.runtime.NativeLibrary.ensureNativeLibLoaded(NativeLibrary.java:350)
at com.sun.gluegen.runtime.NativeLibrary.open(NativeLibrary.java:163)
at net.java.games.joal.impl.ALProcAddressLookup$DynamicLookup.dynamicLookupFunction(ALProcAddressLookup.java:60)
at com.sun.gluegen.runtime.ProcAddressHelper.resetProcAddressTable(ProcAddressHelper.java:64)
at net.java.games.joal.impl.ALProcAddressLookup.resetALCProcAddressTable(ALProcAddressLookup.java:100)
at net.java.games.joal.impl.ALCImpl.alcOpenDevice(ALCImpl.java:342)
at net.java.games.joal.util.ALut.alutInit(ALut.java:62)
at demos.joal.SingleStaticSource.main(SingleStaticSource.java:146)

I get the same error if I try to run one of the JOAL demos. Oh, and its a pre Intel mac. Any ideas?

Sorry about that. In order to develop JOAL apps you need to also download gluegen-rt.jar and its associated native jar file for your platform from here. Unjar the native library jar, make sure the gluegen-rt native library is on your java.library.path and the gluegen-rt.jar is on your CLASSPATH, and it should work. We’ll be cleaning up the distribution mechanism for developers using JOGL and JOAL soon.

Thanks Ken, all working now on my mac :slight_smile: