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

Offline gouessej

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

I get the following exception when using LibraryJOAL:
Exception in thread "Thread-1" java.lang.ExceptionInInitializerError
   at com.jogamp.openal.ALFactory.initialize(
   at com.jogamp.openal.ALFactory.getALC(
   at com.jogamp.openal.util.ALut.alutInit(
   at paulscode.sound.libraries.LibraryJOAL.init(
   at paulscode.sound.SoundSystem.CommandNewLibrary(
   at paulscode.sound.SoundSystem.CommandQueue(
Caused by: java.lang.RuntimeException: Couln't load native AL/JNI glue library
   at jogamp.openal.ALImpl.<clinit>(
   ... 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:

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 »