org.lwjgl.test.openal.(et al) java.lang.NullPointerException

Started by dpwildboar, February 25, 2006, 21:51:55

Previous topic - Next topic

dpwildboar

is there something else that i need to do for setup of openal?  other then a crash on exit that is discussed in another thread the various tests have been working great.

any of the openal tests that i try throw a java.lang.NullPointerException

/usr/local/downloads/jdk/jdk1.5.0_06/bin/java -classpath './jar:./jar/jinput.jar:./jar/lwjgl_fmod3.jar:./jar/lwjgl_util.jar:./jar/lwjgl.jar:./jar/lwjgl_devil.jar:./jar/lwjgl_test.jar' -Djava.library.path=/usr/local/downloads/lwjgl-linux-0.99/lwjgl-linux-0.99/native  org.lwjgl.test.openal.OpenALCreationTest
initialize...success
java.lang.NullPointerException
       at org.lwjgl.util.WaveData.create(WaveData.java:95)
       at org.lwjgl.util.WaveData.create(WaveData.java:112)
       at org.lwjgl.test.openal.OpenALCreationTest.executeAudioTest(OpenALCreationTest.java:154)
       at org.lwjgl.test.openal.OpenALCreationTest.execute(OpenALCreationTest.java:109)
       at org.lwjgl.test.openal.OpenALCreationTest.main(OpenALCreationTest.java:222)
Exception in thread "main" java.lang.NullPointerException
       at org.lwjgl.test.openal.OpenALCreationTest.executeAudioTest(OpenALCreationTest.java:157)
       at org.lwjgl.test.openal.OpenALCreationTest.execute(OpenALCreationTest.java:109)
       at org.lwjgl.test.openal.OpenALCreationTest.main(OpenALCreationTest.java:222)

this is on a suse 10, updated to current distribution available via YOU (suse's online updater).  which means that if it is using the systems openal... which i thought it was not, since there is a libopenal.so in native/ ... anywho, this is what you find installed according to rpm:

rpm -q openal
openal-20050801-2

Matzon

thats just because it can't locate the resource files to play - extract those and add dir to classpath

dpwildboar

ah, yes... was missing './res' in the path  thanks that worked =)