From bbf76714c0d2af12a687195b1e68f3797e2ff562 Mon Sep 17 00:00:00 2001 From: kcr Date: Tue, 24 Jul 2007 20:59:03 +0000 Subject: 1. Updated the Java 3D applet example & documentation 2. Fixed a bug on Windows Vista in locating the deployment.properties file --- www/index.html | 135 ++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 80 insertions(+), 55 deletions(-) (limited to 'www') 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. - +

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.

Applets using the OpenGL(r) 3D API

@@ -283,26 +284,6 @@

- An applet using Java 3D as an extension: - -

- <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">
-   <param name="codebase_lookup" value="false">
-   <param name="subapplet.classname" value="org.jdesktop.j3d.examples.four_by_four.FourByFour">
-   <param name="subapplet.displayname" value="Java 3D Four by Four Applet">
-   <param name="jnlpNumExtensions" value="1">
-   <param name="jnlpExtension1"
-      value="http://download.java.net/media/java3d/webstart/early-access/java3d-1.5.1-exp.jnlp">
-   <param name="progressbar" value="true">
- </applet>
- 
- -

- 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"> </applet> - +

- + 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 jogl-demos.jar and joal-demos.jar. Note again the use of the noddraw.check parameter. - -

 
+
+ 
  <applet code="org.jdesktop.applet.util.JNLPAppletLauncher"
       width=600
       height=400
@@ -358,55 +339,99 @@
    <param name="jnlpExtension2"
           value="http://download.java.net/media/joal/webstart/joal.jnlp">
  </applet>
- 
- +
+ +

+ An applet using Java 3D as an extension: + +

+ <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">
+   <param name="codebase_lookup" value="false">
+   <param name="subapplet.classname" value="mypkg.MyApplet">
+   <param name="subapplet.displayname" value="My Java 3D Applet">
+   <param name="jnlpNumExtensions" value="1">
+   <param name="jnlpExtension1" value="http://download.java.net/media/java3d/webstart/release/java3d-1.5.1.jnlp">
+   <param name="progressbar" value="true">
+   <param name="noddraw.check" value="true">
+ </applet>
+ 
+ +

+ 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. +

Locations of Standard Extensions

- +

- + This section describes how to set up the archive and jnlpExtension parameters for a few standard extensions. - +

JNLPAppletLauncher

- +

- + The master jar file for the JNLPAppletLauncher is located at the following URL:

  http://download.java.net/media/applet-launcher/applet-launcher.jar
  
- +

- + This jar needs to be added to your archive parameter. - +

Java 3D

- +

- - 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:

- 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
  
-

- - and refer to the following in one of your jnlpExtension parameters: + Then add the following to one of your jnlpExtension parameters:

- 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
  
+ 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: + +
+ http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jar
+ http://download.java.net/media/gluegen/webstart/gluegen-rt.jar
+ 
+ + 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. +

+ + 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. +

JOGL

- + 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 @@

- + Because JOGL depends on the GlueGen runtime, you will also need to add the following URL to your archive parameter: @@ -424,7 +449,7 @@

- + Finally, add the following to one of your jnlpExtension parameters: @@ -433,7 +458,7 @@

- + 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 @@

JOAL

- + 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 @@

- + 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 @@

- + (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 @@

- + 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 @@

- + and wherever you would call System.loadLibrary() (from within an AccessController.doPrivileged() block) to load your extension's native code, call the above @@ -539,7 +564,7 @@

Acknowledgments

- + The JNLPAppletLauncher was developed by Kevin Rushforth, Kenneth Russell, and Chien Yang. It is based on the earlier JOGLAppletLauncher developed by Lilian Chamontin. -- cgit v1.2.3