Posted by
Sandhase on
Jan 18, 2011; 3:39pm
URL: https://forum.jogamp.org/JOGL-Web-Start-Applet-in-a-Local-Net-tp2278856p2280550.html
Some more information:
With some research on the topic this afternoon i realized that I did not followed _all_ files. So I downloaded a lot of jar files and ca 6-8 .jnlp files which should be all I need not i hope. All links to the files in the Internet are replaced with the Link on my webserver but it does not work. I get many different errors due to different versions I think.
Got some problems with the signing but removed all security tags in the .jlnp files so the problem is solved i guess.
For now I get an error saying:
java.lang.RuntimeException: java.lang.NoClassDefFoundError: javax/media/opengl/GLAnimatorControl
at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3063)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1481)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NoClassDefFoundError: javax/media/opengl/GLAnimatorControl
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at sun.plugin2.applet.Plugin2Manager$12.run(Plugin2Manager.java:3005)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.ClassNotFoundException: javax.media.opengl.GLAnimatorControl
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Plugin2ClassLoader.java:983)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Plugin2ClassLoader.java:939)
at sun.plugin2.applet.JNLP2ClassLoader.findClass(JNLP2ClassLoader.java:308)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Plugin2ClassLoader.java:249)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:179)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 14 more
Ausnahme: java.lang.RuntimeException: java.lang.NoClassDefFoundError: javax/media/opengl/GLAnimatorControl
But I#ve checked the jogl.all.jar, changed it and now the GLAnimatorControl Interface is in the jar file but nothing changed.
Hope somebody could help me.
Last time I forgot the code for the .html and .jnlp file for the applet itself.
here it is:
HTML File:
<applet code="org.jdesktop.applet.util.JNLPAppletLauncher"
width=640
height=400
archive="
http://x/applets/data/applet-launcher.jar,
http://x/applets/data/jogampLib/nativewindow.all.jar,
http://x/applets/data/jogampLib/jogl.all.jar,
http://x/applets/data/jogampLib/gluegen-rt.jar,
http://x/applets/JOGLApplet.jar"> </applet>
The .JNLP File:
<?xml version="1.0" encoding="utf-8"?>
<jnlp href="applet-test.jnlp">
<information>
<title>JOGL JNLP Applet Demo</title>
<vendor>DLR</vendor>
<description>Demo</description>
<description kind="short">JOGL DEMO.</description>
<offline-allowed/>
</information>
<resources>
<j2se version="1.4+"/>
<property name="sun.java2d.noddraw" value="true"/>
<jar href="
http://x/applets/JOGLApplet.jar" main="true"/>
<extension name="newt-all-awt" href="
http://x/applets/data/jogampLib/newt-all-awt.jnlp" />
</resources>
<applet-desc
name="JOGL Applet"
main-class="test.TriangleApplet"
width="640"
height="480">
</applet-desc>
</jnlp>
where x stands for the ip-address of the webserver..
thanks