Re: JOGL Web Start Applet in a Local Net
Posted by
Wade Walker on
Jan 19, 2011; 5:08pm
URL: https://forum.jogamp.org/JOGL-Web-Start-Applet-in-a-Local-Net-tp2278856p2288671.html
Hi Sandhase,
I tested this today, and got a simple Java Web Start app working both with and without network. Here's what I did:
1. Copied gluegen-rt.jar, nativewindow.all.jar, jogl.all.jar, newt.all.jar, jogl.test.jar, ant.jar, ant-junit.jar, junit.jar, and all the JOGL DLLs into one dir.
2. Created a signing key: keytool -genkey -keystore testKeys -alias ww
3. Signed all the JARs with: jarsigner -keystore testKeys ant-junit.jar ww
4. Created GearsTest.jnlp in the same dir as my JARs and DLLs:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="file://localhost/C:/Documents and Settings/wwalker/My Documents/jogl2/jws/"
href="GearsTest.jnlp">
<information>
<title>JOGL Gears Demo</title>
<vendor>JogAmp Community</vendor>
<homepage href="http://jogamp.org/jogl-demos/"/>
<description>Gears Demo</description>
<description kind="short">Brian Paul's Gears demo ported to Java and JOGL.</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+"/>
<property name="sun.java2d.noddraw" value="true"/>
<jar href="jogl.test.jar" main="true"/>
<jar href="gluegen-rt.jar" />
<jar href="nativewindow.all.jar" />
<jar href="jogl.all.jar" />
<jar href="newt.all.jar" />
<jar href="ant.jar" />
<jar href="ant-junit.jar" />
<jar href="junit.jar" />
</resources>
<application-desc main-class="com.jogamp.opengl.test.junit.jogl.demos.gl2.gears.TestGearsAWT">
</application-desc>
</jnlp>
5. Ran by double-clicking GearsTest.jnlp from Windows explorer.
6. Unplugged the network cable, ran it again, still works!