summaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorkcr <kcr>2007-07-24 20:59:03 +0000
committerkcr <kcr>2007-07-24 20:59:03 +0000
commitbbf76714c0d2af12a687195b1e68f3797e2ff562 (patch)
tree5ad87eeef3629a9a7c79b99d895f3dbd071172ab /www
parent1fbea84d0076517eb66093e37f1342ebe47b4e12 (diff)
1. Updated the Java 3D applet example & documentation
2. Fixed a bug on Windows Vista in locating the deployment.properties file
Diffstat (limited to 'www')
-rw-r--r--www/index.html135
1 files changed, 80 insertions, 55 deletions
diff --git a/www/index.html b/www/index.html
index c83ea72..baa9410 100644
--- a/www/index.html
+++ b/www/index.html
@@ -117,7 +117,7 @@
This capability means that your applets can refer directly to
extensions like Java 3D and JOGL hosted on Sun's web servers
without having to duplicate their jar files on your web server.
-
+
<p>
To use this capability effectively with the JNLPAppletLauncher, you
@@ -190,6 +190,7 @@
to improve efficiency of its loading if it does not rely on
fetching flat files from the web server off the codebase.
+ We recommend setting this parameter.
<h2>Applets using the OpenGL(r) 3D API</h2>
@@ -283,26 +284,6 @@
<p>
- An applet using Java 3D as an extension:
-
- <pre>
- &lt;applet code="org.jdesktop.applet.util.JNLPAppletLauncher"
- width=640
- height=480
- codebase="http://download.java.net/media/java3d/applets/applet-test/"
- archive="applet-launcher.jar,j3d-examples.jar,j3dcore.jar,j3dutils.jar,vecmath.jar"&gt;
- &lt;param name="codebase_lookup" value="false"&gt;
- &lt;param name="subapplet.classname" value="org.jdesktop.j3d.examples.four_by_four.FourByFour"&gt;
- &lt;param name="subapplet.displayname" value="Java 3D Four by Four Applet"&gt;
- &lt;param name="jnlpNumExtensions" value="1"&gt;
- &lt;param name="jnlpExtension1"
- value="http://download.java.net/media/java3d/webstart/early-access/java3d-1.5.1-exp.jnlp"&gt;
- &lt;param name="progressbar" value="true"&gt;
- &lt;/applet&gt;
- </pre>
-
- <p>
-
An applet using JOGL as an extension. Note that this example does
not specify a codebase, instead specifying all of its archive tag
elements with absolute URLs (split here for readability; in a real
@@ -328,16 +309,16 @@
value="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp"&gt;
&lt;/applet&gt;
</pre>
-
+
<p>
-
+
An applet using both JOGL and JOAL as extensions. Note again that
all code resources are specified with absolute URLs. In this
example the unsigned applet pulls in code from both
<code>jogl-demos.jar</code> and <code>joal-demos.jar</code>. Note
again the use of the <code>noddraw.check</code> parameter.
-
- <pre>
+
+ <pre>
&lt;applet code="org.jdesktop.applet.util.JNLPAppletLauncher"
width=600
height=400
@@ -358,55 +339,99 @@
&lt;param name="jnlpExtension2"
value="http://download.java.net/media/joal/webstart/joal.jnlp"&gt;
&lt;/applet&gt;
- </pre>
-
+ </pre>
+
+ <p>
+ An applet using Java 3D as an extension:
+
+ <pre>
+ &lt;applet code="org.jdesktop.applet.util.JNLPAppletLauncher"
+ width=400
+ height=300
+ archive="myapplet.jar,
+ http://download.java.net/media/applet-launcher/applet-launcher.jar,
+ http://download.java.net/media/java3d/webstart/release/j3d/1.5.1/j3dcore.jar,
+ http://download.java.net/media/java3d/webstart/release/j3d/1.5.1/j3dutils.jar,
+ http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jar,
+ http://download.java.net/media/gluegen/webstart/gluegen-rt.jar,
+ http://download.java.net/media/java3d/webstart/release/vecmath/1.5.1/vecmath.jar"&gt;
+ &lt;param name="codebase_lookup" value="false"&gt;
+ &lt;param name="subapplet.classname" value="mypkg.MyApplet"&gt;
+ &lt;param name="subapplet.displayname" value="My Java 3D Applet"&gt;
+ &lt;param name="jnlpNumExtensions" value="1"&gt;
+ &lt;param name="jnlpExtension1" value="http://download.java.net/media/java3d/webstart/release/java3d-1.5.1.jnlp"&gt;
+ &lt;param name="progressbar" value="true"&gt;
+ &lt;param name="noddraw.check" value="true"&gt;
+ &lt;/applet&gt;
+ </pre>
+
+ <p>
+ Note that the JOGL jar files are also included in this example. This is
+ necessary in order to run on Mac OS X, for which Java 3D always uses
+ JOGL to render.
+
<h2> Locations of Standard Extensions </h2>
-
+
<p>
-
+
This section describes how to set up the <code>archive</code> and
<code>jnlpExtension</code> parameters for a few standard
extensions.
-
+
<h4>JNLPAppletLauncher</h4>
-
+
<p>
-
+
The master jar file for the JNLPAppletLauncher is located at the following URL:
<pre>
http://download.java.net/media/applet-launcher/applet-launcher.jar
</pre>
-
+
<p>
-
+
This jar needs to be added to your archive parameter.
-
+
<h4>Java 3D</h4>
-
+
<p>
-
- The early access release of Java 3D 1.5.1 and later support the
+
+ Java 3D 1.5.1 and later supports the
JNLPAppletLauncher. You will need to add the following URLs to your
archive parameter:
<pre>
- http://download.java.net/media/java3d/webstart/early-access/j3d/1.5.1/j3dcore.jar
- http://download.java.net/media/java3d/webstart/early-access/j3d/1.5.1/j3dutils.jar
- http://download.java.net/media/java3d/webstart/early-access/vecmath/1.5.1/vecmath.jar
+ http://download.java.net/media/java3d/webstart/release/j3d/1.5.1/j3dcore.jar
+ http://download.java.net/media/java3d/webstart/release/j3d/1.5.1/j3dutils.jar
+ http://download.java.net/media/java3d/webstart/release/vecmath/1.5.1/vecmath.jar
</pre>
- <p>
-
- and refer to the following in one of your <code>jnlpExtension</code> parameters:
+ Then add the following to one of your <code>jnlpExtension</code> parameters:
<pre>
- http://download.java.net/media/java3d/webstart/early-access/java3d-1.5.1-exp.jnlp
+ http://download.java.net/media/java3d/webstart/release/java3d-1.5.1.jnlp
</pre>
+ If you want to deploy your applet on Mac OS X, you will also need to
+ include JOGL by adding the following URLs to your archive parameter:
+
+ <pre>
+ http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jar
+ http://download.java.net/media/gluegen/webstart/gluegen-rt.jar
+ </pre>
+
+ Note that this will only work if Java 3D is not installed into the JRE as an
+ extension. Since Apple ships their JRE with Java 3D pre-installed, the
+ end-user must uninstall Java 3D in order for Java 3D applets to work on Mac.
+ <p>
+
+ Note that the Java 3D .jnlp extension will automatically pull in the
+ native code associated with JOGL and the GlueGen runtime, so you don't have
+ to separately refer to those .jnlp files.
+
<h4>JOGL</h4>
<p>
-
+
JOGL 1.1.1-rc3 and later support the JNLPAppletLauncher. You will
need to add the following URL to your archive parameter:
@@ -415,7 +440,7 @@
</pre>
<p>
-
+
Because JOGL depends on the GlueGen runtime, you will also need to
add the following URL to your archive parameter:
@@ -424,7 +449,7 @@
</pre>
<p>
-
+
Finally, add the following to one of your
<code>jnlpExtension</code> parameters:
@@ -433,7 +458,7 @@
</pre>
<p>
-
+
Note that the jogl.jnlp extension will automatically pull in the
native code associated with the GlueGen runtime, so you don't have
to separately refer to the gluegen-rt.jnlp file.
@@ -441,7 +466,7 @@
<h4>JOAL</h4>
<p>
-
+
JOAL 1.1.1 and later support the JNLPAppletLauncher. You will need
to add the following URL to your archive parameter:
@@ -450,7 +475,7 @@
</pre>
<p>
-
+
Because JOAL, like JOGL, depends on the GlueGen runtime, you will
also need to add the following URL to your archive parameter:
@@ -459,7 +484,7 @@
</pre>
<p>
-
+
(If you are using both JOGL and JOAL, you only need to refer to
gluegen-rt.jar once in your archive parameter.)
@@ -473,7 +498,7 @@
</pre>
<p>
-
+
Note that the joal.jnlp extension will automatically pull in the
native code associated with the GlueGen runtime, so you don't have
to separately refer to the gluegen-rt.jnlp file.
@@ -521,7 +546,7 @@
</pre>
<p>
-
+
and wherever you would call <code>System.loadLibrary()</code> (from
within an <code>AccessController.doPrivileged()</code> block) to
load your extension's native code, call the above
@@ -539,7 +564,7 @@
<h2>Acknowledgments</h2>
<p>
-
+
The JNLPAppletLauncher was developed by Kevin Rushforth, Kenneth
Russell, and Chien Yang. It is based on the earlier
JOGLAppletLauncher developed by Lilian Chamontin.