HelloIntersection Sound Problem

Hello all!

I have read through the search results but nothing applied to the same problem I am having. Everything has compiled and ran in the Wiki beginner tutorials until I got to the HelloIntersection tut. If I comment out all the sound it runs fine and I've pinpointed it to the point where it trys to load the ogg sound files.

Here is the error…

java.lang.NoClassDefFoundError: com/jcraft/jorbis/JOrbisException

    at com.jmex.audio.openal.OpenALSystem.createAudioTrack(OpenALSystem.java:201)

    at com.jmex.audio.openal.OpenALSystem.createAudioTrack(OpenALSystem.java:61)

    at HelloIntersection.setupSound(HelloIntersection.java:115)

    at HelloIntersection.simpleInitGame(HelloIntersection.java:69)

    at com.jme.app.BaseSimpleGame.initGame(BaseSimpleGame.java:545)

    at com.jme.app.BaseGame.start(BaseGame.java:74)

    at HelloIntersection.main(HelloIntersection.java:65)

It seems it is looking for a class referenced by com.jmex.audio.openal.OpenAlSystem called jorbis, which it looks like JME2 uses to load ogg files which is what comes with the latest stable release of JME2 in the jmetest folder.

I looked through the jars and couldnt find any reference to this class anywhere. Is it missing?

Thanks for any help and pointers! :slight_smile:

Ok, never mind. I had to add a jOrbis reference in the required libraries of the project which pointed to JME2liblibjorbisjorbis-0.0.17.jar.

This took care of the problem.



I've been going through all the tutorials as well and when trying to run the HelloIntersection one, i'm getting this exception:

java.lang.NoSuchMethodError: Method org.lwjgl.openal.AL10.alEnable(I)V is not declared as native

       at org.lwjgl.openal.AL10.initNativeStubs(Native Method)

       at org.lwjgl.openal.AL.init(AL.java:158)

       at org.lwjgl.openal.AL.create(AL.java:140)

       at org.lwjgl.openal.AL.create(AL.java:104)

       at org.lwjgl.openal.AL.create(AL.java:191)

       at com.jmex.audio.openal.OpenALSystem.<init>(OpenALSystem.java:81)

       at com.jmex.audio.AudioSystem.getSystem(AudioSystem.java:63)

       at HelloIntersection.setupSound(HelloIntersection.java:110)

       at HelloIntersection.simpleInitGame(HelloIntersection.java:69)

       at com.jme.app.BaseSimpleGame.initGame(BaseSimpleGame.java:545)

       at com.jme.app.BaseGame.start(BaseGame.java:74)

       at HelloIntersection.main(HelloIntersection.java:65)

I decompiled everything and it is set as native so i'm somewhat confused…anyone got any advice how to fix it? I commented out all the audio stuff and the tutorial works perfect then.



it seems you use an incompatible lwjgl.jar, do you use the version that comes with jme ?


I have the same proplem. I'm using the LWJGL Release 2.4.2 with the jars and the .dll's.

My VM-Option is set to the right path.

Any idea?