Error Running Sample LWJGL Game

Started by snowboard4food, October 08, 2005, 19:07:28

Previous topic - Next topic

snowboard4food

Heres the result when I try to run the space invaders game:
[tylervh@localhost lwjgl-linux-0.98]$ java -cp .:jar/lwjgl.jar:jar/jinput.jar:jar/lwjgl_fmod3.jar:jar/lwjgl_test.jar:jar/lwjgl_devil.jar:jar/lwjgl_util.jar: -Djava.library.path=native org.lwjgl.examples.spaceinvaders.Game -fullscreen
Use -fullscreen for fullscreen mode
java.lang.NullPointerException
       at org.lwjgl.util.WaveData.create(WaveData.java:95)
       at org.lwjgl.util.WaveData.create(WaveData.java:112)
       at org.lwjgl.examples.spaceinvaders.SoundManager.addSound(SoundManager.java:154)
       at org.lwjgl.examples.spaceinvaders.Game.initialize(Game.java:242)
       at org.lwjgl.examples.spaceinvaders.Game.<init>(Game.java:179)
       at org.lwjgl.examples.spaceinvaders.Game.main(Game.java:580)
Exception in thread "main" java.lang.NullPointerException
       at org.lwjgl.examples.spaceinvaders.SoundManager.addSound(SoundManager.java:157)
       at org.lwjgl.examples.spaceinvaders.Game.initialize(Game.java:242)
       at org.lwjgl.examples.spaceinvaders.Game.<init>(Game.java:179)
       at org.lwjgl.examples.spaceinvaders.Game.main(Game.java:580)

* NoTE: I am running linux and the JDK 1.5.0_05

Any solutions?

oNyx

Add the res/spaceinvaders dir to the classpath.