Author Topic: LibraryJOAL does not work with the latest version of JOAL (Release candidate 4)  (Read 2989 times)

Offline gouessej

  • byte
  • *
  • Posts: 17
    • View Profile
    • TUER (first person shooter written in Java by Julien Gouesse)
Hi

I get the following exception when using LibraryJOAL:
Exception in thread "Thread-1" java.lang.ExceptionInInitializerError
   at com.jogamp.openal.ALFactory.initialize(ALFactory.java:58)
   at com.jogamp.openal.ALFactory.getALC(ALFactory.java:92)
   at com.jogamp.openal.util.ALut.alutInit(ALut.java:66)
   at paulscode.sound.libraries.LibraryJOAL.init(LibraryJOAL.java:154)
   at paulscode.sound.SoundSystem.CommandNewLibrary(SoundSystem.java:1576)
   at paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2572)
   at paulscode.sound.CommandThread.run(CommandThread.java:121)
Caused by: java.lang.RuntimeException: Couln't load native AL/JNI glue library
   at jogamp.openal.ALImpl.<clinit>(ALImpl.java:2260)
   ... 7 more

Actually, as far as I know, all APIs composing the JogAmp project are now able to extract native libraries from JARs automatically, you don't have to load them manually. The static initializer should look at the property indicating whether or not this mechanism is on ("jogamp.gluegen.UseTempJarCache") and if so, it should not try to load JOAL native libraries. Best regards.

Edit.: It is explained here:
http://forum.jogamp.org/JogAmp-Deployment-Enhancements-Automatic-loading-of-native-JARs-Applet-Application-td3362447.html

Edit.2: Sven says that JOAL does not support jogamp.gluegen.UseTempJarCache yet, he will fix this limitation soon. Maybe there is nothing to do on your side. I will let you know when it is fully working.
« Last Edit: December 08, 2011, 04:08:01 AM by gouessej »