Posted by
nemesis on
Jun 22, 2011; 4:41am
URL: https://forum.jogamp.org/JOGL-applet-deployment-tp3074893p3094154.html
I FIGURED IT OUT!
The applet jlnp file was missing a tag:
The correct way to write it is:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="file://localhost/C:/Workspace/3DApplet/Test/"
href="Viewer3DApplet.jnlp">
<information>
<title>Viewer3D</title>
<vendor>Nemesis</vendor>
<homepage href="
http://jogamp.org/"/> <description>A 3D Viewer</description>
<description kind="short">TestApplet</description>
<offline-allowed/>
</information>
<update check="background" policy="always"/>
<security>
<all-permissions/>
</security>
<resources>
<j2se href="
http://java.sun.com/products/autodl/j2se/" version="1.4+"/>
<j2se version="1.4+"/>
<property name="sun.java2d.noddraw" value="true"/>
<extension name="jogl" href="jogl.jnlp" />
<jar href="viewer.jar" main="true"/>
</resources>
<applet-desc
name="Viewer3Dapplet"
main-class="com.Viewer3D.Viewer3D"
width="700"
height="600">
</applet-desc>
</jnlp>
The key was the <j2se version="1.4+"/> tag. If you delete this, you get the aforementioned error. Now the applet works great!
Signing all the jars also seems to be critical. If you don't sign them, the applet fails to load.
This brings me to another question: Is there a way to sign all the jars in bulk? Like
jarsigner -keystore keys *.jar signKeys
This does not seem to work, and doing them one by one is so tedious. Also, after the signature expires, do I need to sign them again? Is there a way to sign them forever?
Thank you.