Reply – Re: JOAL Couln't load native AL library
Your Name
Subject
Message
or Cancel
In Reply To
Re: JOAL Couln't load native AL library
— by Jkrzysztof Jkrzysztof
Hi,

It seems that it has complicated right now. I can run JOGL/JOAL demo (demos.applets.GearsJOALApplet),
but my local applets fail.
I tried to download jogl-demos.jar and run applet with local version of jar, but it keeps throwing:

Caused by: java.lang.RuntimeException: Couln't load native AL library
        at jogamp.openal.ALImpl.<clinit>(ALImpl.java:2407)

JOGL part is working fine. I can see that Java process has successfully loaded native gluegen-rt.dll or
OpenGL32.dll, but for some reason OpenAL is not loaded.

Here is my code:

<html>
<body>
<__object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
      width="600" height="400">
   <__param name="code" value="org.jdesktop.applet.util.JNLPAppletLauncher">
   <__param name="archive" value="http://jogamp.org/deployment/webstart/jar/applet-launcher.jar,
                                http://jogamp.org/deployment/webstart/jar/gluegen-rt.jar,
                                http://jogamp.org/deployment/webstart/jar/jogl-all.jar,
                                http://jogamp.org/deployment/webstart/jar/joal.jar,
                                jogl-demos.jar">
   <__param name="codebase_lookup" value="false">
   <__param name="subapplet.classname" value="demos.applets.GearsJOALApplet">
   <__param name="subapplet.displayname" value="JOGL / JOAL Gears Applet">
   <__param name="noddraw.check" value="true">
   <__param name="progressbar" value="true">
   <__param name="jnlpNumExtensions" value="2">
   <__param name="jnlpExtension1" value="http://jogamp.org/deployment/webstart/jogl-all-awt.jnlp">
   <__param name="jnlpExtension2" value="http://jogamp.org/deployment/webstart/joal.jnlp">
   <__param name="java_arguments" value="-Dsun.java2d.noddraw=true">
   <comment>
     <__embed code="org.jdesktop.applet.util.JNLPAppletLauncher"
          width="600" height="400"
          type="application/x-java-applet;version=1.6"
          pluginspage="http://java.sun.com/javase/downloads/ea.jsp"
          archive="http://jogamp.org/deployment/webstart/jar/applet-launcher.jar,
                   http://jogamp.org/deployment/webstart/jar/gluegen-rt.jar,
                   http://jogamp.org/deployment/webstart/jar/jogl-all.jar,
                   http://jogamp.org/deployment/webstart/jar/joal.jar,
                   jogl-demos.jar"
          codebase_lookup="false"
          subapplet.classname="demos.applets.GearsJOALApplet"
          subapplet.displayname" value="JOGL / JOAL Gears Applet"
          noddraw.check" value="true"
          progressbar="true"
          jnlpNumExtensions="2"
          jnlpExtension1="http://jogamp.org/deployment/webstart/jogl-all-awt.jnlp"
          jnlpExtension2="http://jogamp.org/deployment/webstart/joal.jnlp"
          java_arguments="-Dsun.java2d.noddraw=true">
        <noembed>Sorry, no Java support detected.</noembed>
     </__embed>
   </comment>
</__object>
</body>
</html>


Some tags are not displayed, so I prefixed theme with '__'. Remove for tests ;)

PS: Tested on Win7 and WinXP SP3.

Kind regards
Krzysiek