Login  Register

Re: JOGL Web Start Applet in a Local Net

Posted by Michael Bien on Jan 19, 2011; 5:29pm
URL: https://forum.jogamp.org/JOGL-Web-Start-Applet-in-a-Local-Net-tp2278856p2288865.html

  ups. sorry responded to quickly. I somehow missed the last part of
point 4).
(The 'codebase' is in the searchpath for native libs - all good :) )

however you will have to use the 'nativelib' tags at the end of the day, since you can't place all native libs in one folder because of naming conflicts between 32 and 64bit libs.

-michael

On 01/19/2011 06:08 PM, Wade Walker [via jogamp] wrote:
> 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!
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the
> discussion below:
> http://jogamp.762907.n3.nabble.com/JOGL-Web-Start-Applet-in-a-Local-Net-tp2278856p2288671.html 
>
> To start a new topic under jogamp, email
> ml-node+762907-380265080-8131@n3.nabble.com
> To unsubscribe from jogamp, click here
> <http://jogamp.762907.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=762907&code=YmllbmF0b3JAYXJjb3IuZGV8NzYyOTA3fDQxNTEwMDY0OA==>.
>

--
http://michael-bien.com/