Posted by
Sven Gothel on
Nov 14, 2012; 2:26am
URL: https://forum.jogamp.org/JOAL-Couln-t-load-native-AL-library-tp4026603p4026936.html
On 11/14/2012 02:29 AM, Sven Gothel wrote:
> On 11/13/2012 01:28 AM, gouessej [via jogamp] wrote:
>> Sven Gothel wrote
>> Note: NApplet's are supported w/ all JVM's, incl. OpenJDK.
>>
>> JOGL Applets still get frozen on my machine and I use OpenJDK with Icedtea-web:
>>
http://jogamp.org/deployment/jogamp-current/jogl-demos/jogl-newt-applet-runner-angelesgl2es1.html>
> Yeah, looks like the stability of that IcedTea plugin varies from person to
> person and time to time :(
>
> But one thing for sure, Xerxes can run it fine :)
>
> Joke aside, can you post details of your used distribution
> and OpenJDK / IcedTea packages used ?
> Then we may have a chance to track something down.
>
> Will run some tests on Wheeze and Kubuntu in a sec ..
>
[1] Debian/Wheezy:
- Firefox 16.0.2
- Java Version: 1.6.0_24, VM: OpenJDK 64-Bit Server VM
- OpenJDK6 6b24-1.11.5-1
- icedtea-6-plugin:amd64 1.3.1-1
[1] Debian/Wheezy:
- Firefox 16.0.2
- Java Version: 1.7.0_03, VM: OpenJDK 64-Bit Server VM
- OpenJDK7 7u3-2.1.3-1
- icedtea-7-plugin:amd64 1.3.1-1
It's 'funny' that (A) work, but not (B).
Admitted, (B) is sort of tricky when it comes to mixed code
but is in it's limits of the spec.
(B) does:
b1 - launch directly into an Applet instance inside a signed JAR
b2 - tries to get permissions (code signing relevant) .. and fails
b3 - if it would not have failed, it would have loaded the GLEventListener
from an unsigned JAR and utilized that.
Note that b1 is still secure, since we don't grab the whole privilege block
for an extended amount of code, only to read properties.
[Will test w/ kubuntu 12.10 soon]
A -
https://jogamp.org/deployment/jogamp-current/jogl-applet-version-napplet.html - [1] OK
- [2] OK
B -
https://jogamp.org/deployment/jogamp-current/jogl-applet-runner-newt-gears-normal-napplet.html - [1] Error:
Exception in thread "Applet" java.lang.ExceptionInInitializerError
at com.jogamp.common.util.PropertyAccess.addTrustedPrefix(PropertyAccess.java:52)
at jogamp.newt.Debug.<clinit>(Debug.java:52)
at com.jogamp.newt.awt.applet.JOGLNewtAppletBase.<clinit>(JOGLNewtAppletBase.java:58)
at com.jogamp.newt.awt.applet.JOGLNewtApplet1Run.<clinit>(JOGLNewtApplet1Run.java:95)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:745)
at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:687)
at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:905)
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission getProtectionDomain)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:393)
at java.security.AccessController.checkPermission(AccessController.java:558)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at net.sourceforge.jnlp.runtime.JNLPSecurityManager.checkPermission(JNLPSecurityManager.java:284)
at java.lang.Class.getProtectionDomain(Class.java:2123)
at com.jogamp.common.util.SecurityUtil$2.run(SecurityUtil.java:52)
at com.jogamp.common.util.SecurityUtil$2.run(SecurityUtil.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at com.jogamp.common.util.SecurityUtil.getCerts(SecurityUtil.java:50)
at com.jogamp.common.util.SecurityUtil.<clinit>(SecurityUtil.java:46)
... 13 more
java.lang.NullPointerException
at net.sourceforge.jnlp.NetxPanel.runLoader(NetxPanel.java:154)
at sun.applet.AppletPanel.run(AppletPanel.java:380)
at java.lang.Thread.run(Thread.java:679)
java.lang.NullPointerException
at sun.applet.AppletPanel.run(AppletPanel.java:430)
at java.lang.Thread.run(Thread.java:679)
- [2] Error:
Unable to find class net.sourceforge.jnlp.security.VariableX509TrustManagerJDK7
JAR
https://jogamp.org/deployment/jogamp-current/jar/jogl-all.jar not found. Continuing.
JAR
https://jogamp.org/deployment/jogamp-current/jar/gluegen-rt.jar not found. Continuing.
JAR
https://jogamp.org/deployment/jogamp-current/jar/jogl-test.jar not found. Continuing.
netx: Initialization Error: Could not initialize applet. (com.jogamp.newt.awt.applet.JOGLNewtApplet1Run)
netx: Initialization Error: Could not initialize applet. (com.jogamp.newt.awt.applet.JOGLNewtApplet1Run)
net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize applet.
at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:754)
at net.sourceforge.jnlp.Launcher.getApplet(Launcher.java:687)
at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:905)
Caused by: java.lang.ClassNotFoundException: com.jogamp.newt.awt.applet.JOGLNewtApplet1Run
at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:1609)
at net.sourceforge.jnlp.Launcher.createApplet(Launcher.java:744)
... 2 more
java.lang.NullPointerException
at net.sourceforge.jnlp.NetxPanel.runLoader(NetxPanel.java:154)
at sun.applet.AppletPanel.run(AppletPanel.java:379)
at java.lang.Thread.run(Thread.java:722)
java.lang.NullPointerException
at sun.applet.AppletPanel.run(AppletPanel.java:429)
at java.lang.Thread.run(Thread.java:722)
> ~Sven
>
>
--
health & wealth
mailto:
[hidden email] ;
http://jausoft.comland : +49 (471) 4707742 ; fax : +49 (471) 4707741
Timezone CET: PST+9, EST+6, UTC+1