I am a beginner in JME3 and have so far been able to make some simple applications, but frequently I get an uncaught exception due to “Could not locate OpenAL library”. I searched this problem in the forum and it looks like everyone else who has this problem keeps getting it systematically every time they run their game. But I can get rid of this without any modifications to the project: I just close and restart the IDE and run again, and then everything works fine. In other words, the problem is not reproducible but happens quite often. I am using Windows 10 and I also have gotten the same problem with my Windows 7 machine. The runtime exception is coming from com.jme3.audio, even though I am not using audio and my code has no imports from com.jme3.audio. Just in case, at the end of this post I also pasted the content of the Output/Application pane that has my audio renderer information.
run:
huhtikuuta 28, 2017 2:58:07 IP. java.util.prefs.WindowsPreferences
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(…) returned error code 5.
huhtikuuta 28, 2017 2:58:09 IP. com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.1-stable
- Branch: HEAD
- Git Hash: af04bf9
- Build Date: 2017-02-19
huhtikuuta 28, 2017 2:58:10 IP. com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: LWJGL 2.9.3 context running on thread jME3 Main - Graphics Adapter: aticfx64
- Driver Version: 8.17.10.1474
- Scaling Factor: 1
huhtikuuta 28, 2017 2:58:10 IP. com.jme3.renderer.opengl.GLRenderer loadCapabilitiesCommon
INFO: OpenGL Renderer Information - Vendor: ATI Technologies Inc.
- Renderer: AMD Radeon™ R4 Graphics
- OpenGL Version: 4.5.13447 Compatibility Profile Context 16.300.2701.0
- GLSL Version: 4.50
- Profile: Compatibility
huhtikuuta 28, 2017 2:58:10 IP. com.jme3.asset.AssetConfig loadText
WARNING: Cannot find loader com.jme3.scene.plugins.blender.BlenderModelLoader
AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005
AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005
AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005
huhtikuuta 28, 2017 2:58:10 IP. com.jme3.app.LegacyApplication handleError
SEVERE: Uncaught exception thrown in Thread[jME3 Main,5,main]
java.lang.RuntimeException: org.lwjgl.LWJGLException: Could not locate OpenAL library.
at com.jme3.audio.lwjgl.LwjglALC.createALC(LwjglALC.java:17)
at com.jme3.audio.openal.ALAudioRenderer.initOpenAL(ALAudioRenderer.java:95)
at com.jme3.audio.openal.ALAudioRenderer.initialize(ALAudioRenderer.java:225)
at com.jme3.app.LegacyApplication.initAudio(LegacyApplication.java:283)
at com.jme3.app.LegacyApplication.initialize(LegacyApplication.java:603)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:178)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:130)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:211)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.lwjgl.LWJGLException: Could not locate OpenAL library.
at org.lwjgl.openal.AL.create(AL.java:156)
at org.lwjgl.openal.AL.create(AL.java:102)
at org.lwjgl.openal.AL.create(AL.java:206)
at com.jme3.audio.lwjgl.LwjglALC.createALC(LwjglALC.java:15)
… 8 more
Running on jMonkeyEngine 3.1-stable
- Branch: HEAD
- Git Hash: af04bf9
- Build Date: 2017-02-19
LWJGL 2.9.3 context running on thread jME3 Main - Graphics Adapter: aticfx64
- Driver Version: 8.17.10.1474
- Scaling Factor: 1
OpenGL Renderer Information - Vendor: ATI Technologies Inc.
- Renderer: AMD Radeon™ R4 Graphics
- OpenGL Version: 4.5.13447 Compatibility Profile Context 16.300.2701.0
- GLSL Version: 4.50
- Profile: Compatibility
Audio Renderer Information - Device: OpenAL Soft
- Vendor: OpenAL Community
- Renderer: OpenAL Soft
- Version: 1.1 ALSOFT 1.15.1
- Supported channels: 64
- ALC extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_DEDICATED ALC_EXT_disconnect ALC_EXT_EFX ALC_EXT_thread_local_context ALC_SOFT_loopback
- AL extensions: AL_EXT_ALAW AL_EXT_DOUBLE AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_MULAW AL_EXT_MULAW_MCFORMATS AL_EXT_OFFSET AL_EXT_source_distance_model AL_LOKI_quadriphonic AL_SOFT_buffer_samples AL_SOFT_buffer_sub_data AL_SOFTX_deferred_updates AL_SOFT_direct_channels AL_SOFT_loop_points AL_SOFT_source_latency
Pausing audio device not supported.
Audio effect extension version: 1.0
Audio max auxiliary sends: 4
Returning hash code of content
Reading welcome page content from web failed!
wiki.jmonkeyengine.org
Checking page id 0 vs stored id 0
Error in assetpack, could not load assetpack.xml!