java - Could not locate OpenAL library -


i writing game using slick2d library, uses lwjgl. lwjgl version 2.9.3. using netbeans 8.

i tried adding sounds game, example music track on main menu. problem is, exception when run game, despite game still compiling , running except sound of course:

sat mar 21 01:23:57 edt 2015 error:could not locate openal library. org.lwjgl.lwjglexception: not locate openal library.     @ org.lwjgl.openal.al.create(al.java:156)  @ org.lwjgl.openal.al.create(al.java:156)     @ org.lwjgl.openal.al.create(al.java:102)     @ org.lwjgl.openal.al.create(al.java:206)     @ org.newdawn.slick.openal.soundstore$1.run(soundstore.java:295)     @ java.security.accesscontroller.doprivileged(native method)     @ org.newdawn.slick.openal.soundstore.init(soundstore.java:292)     @ org.newdawn.slick.music.<init>(music.java:156)     @ org.newdawn.slick.music.<init>(music.java:75)     @ view.mainmenu.init(mainmenu.java:58) 

i didn't include rest of error states error happens in game code.

the code use play sound music class of slick2d:

theme = new music("mainmenu.ogg");             theme.play(); 

i've been searching far , wide, tried multiple solutions, still, didn't fix problem. think might related way libraries implemented project. appreciated.

also, before suggesting, have ibxm, jorbis , jogg libraries installed, needed natives openal in dedicated folder natives. here command line use in run properties of project:

-djava.library.path="./native/windows/" 


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -