1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
4 <title>JOGL JNLP Applet Test</title>
9 In case your <a href="https://jdk6.dev.java.net/plugin2/jnlp/">Java Plugin supports JNLP</a>,
10 the <em>applet-gears.jnlp</em> is used,
11 otherwise it shall fallback to <a href="http://jogamp.org/applet-launcher/www/">JNLPAppletLauncher</a>.
15 Note that it is important for the startup time to have the same JVM arguments in the applet tags,
16 as well as within the JNLP applet description, here see property <em>sun.java2d.noddraw</em>. <br>
17 Only if JVM arguments of the JNLP applet description are satisfied by the applet tag's JVM,<br>
18 the plugin will not need to start a new JVM. OF course, the applet tag's JVM spec may exceed the
24 <applet code="org.jdesktop.applet.util.JNLPAppletLauncher"
27 archive="http://jogamp.org/deployment/jogamp-current/jar/applet-launcher.jar,
28 http://jogamp.org/deployment/jogamp-current/jar/gluegen-rt.jar,
29 http://jogamp.org/deployment/jogamp-current/jar/jogl.all.jar,
30 http://jogamp.org/deployment/jogamp-current/jogl-demos/jar/jogl-demos.jar">
31 <param name="codebase_lookup" value="false">
32 <param name="subapplet.classname" value="demos.applets.GearsApplet">
33 <param name="subapplet.displayname" value="JOGL Gears Applet">
34 <param name="noddraw.check" value="true">
35 <param name="progressbar" value="true">
36 <param name="jnlpNumExtensions" value="1">
37 <param name="jnlpExtension1"
38 value="http://jogamp.org/deployment/jogamp-current/jogl-all-awt.jnlp">
39 <param name="java_arguments" value="-Dsun.java2d.noddraw=true">
40 <param name="jnlp_href" value="applet-gears.jnlp">
46 The applet above is instantiated with the following code:
49 <applet code="org.jdesktop.applet.util.JNLPAppletLauncher"
52 archive="http://jogamp.org/deployment/jogamp-current/jar/applet-launcher.jar,
53 http://jogamp.org/deployment/jogamp-current/jar/gluegen-rt.jar,
54 http://jogamp.org/deployment/jogamp-current/jar/jogl.all.jar,
55 http://jogamp.org/deployment/jogamp-current/jogl-demos/jar/jogl-demos.jar">
56 <param name="codebase_lookup" value="false">
57 <param name="subapplet.classname" value="demos.applets.GearsApplet">
58 <param name="subapplet.displayname" value="JOGL Gears Applet">
59 <param name="noddraw.check" value="true">
60 <param name="progressbar" value="true">
61 <param name="jnlpNumExtensions" value="1">
62 <param name="jnlpExtension1"
63 value="http://jogamp.org/deployment/jogamp-current/jogl-all-awt.jnlp">
64 <param name="java_arguments" value="-Dsun.java2d.noddraw=true">
65 <param name="jnlp_href" value="applet-gears.jnlp">
69 Where the referenced JNLP file <em>applet-gears.jnlp</em> looks as follow:
72 <?xml version="1.0" encoding="utf-8"?>
73 <jnlp href="applet-gears.jnlp">
75 <title>JOGL JNLP Applet Gears Demo</title>
76 <vendor>JogAmp Community</vendor>
77 <homepage href="http://jogamp.org/jogl-demos/"/>
78 <description>Gears Demo</description>
79 <description kind="short">Brian Paul's Gears demo ported to Java and JOGL.</description>
80 <offline-allowed/>
84 <j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
85 <property name="sun.java2d.noddraw" value="true"/>
86 <jar href="http://jogamp.org/deployment/jogamp-current/jogl-demos/jar/jogl-demos.jar" main="true"/>
87 <jar href="http://jogamp.org/deployment/jogamp-current/jogl-demos/jar/jogl-demos-util.jar"/>
88 <extension name="newt-all-awt" href="http://jogamp.org/deployment/jogamp-current/jogl-all-awt.jnlp" />
93 main-class="demos.applets.GearsApplet"
103 Note that the jogl-demos.jar, which contains the GearsApplet class,
104 <B>does not need to be signed</B>! JogAmp Community signs
105 applet-launcher.jar, jogl.jar and gluegen-rt.jar, which contain the
106 JNLPAppletLauncher and JOGL's supporting classes; this is the only
107 Java code which needs to be signed in order to deploy applets using
108 JOGL and is the only certificate the end user must accept.
113 The <a href="http://jogamp.org/applet-launcher/www/">JNLPAppletLauncher
114 home page</a> contains more information about what files must be
115 placed on the web server in order to enable the deployment of applets
116 using JOGL and other extensions.