The new JNLPAppletLauncher enables the creation and deployment of applets using Java 3D without requiring the applet to be signed or performing any manual installation of software on users' computers. It has been tested and should work on any OS/CPU combination supported by Java 3D with a Java Runtime Environment version 1.5.0 or later installed into the web browser. Here is an example of the FourByFour demo running as an applet:
The applet above is instantiated with the following code:
<applet code="org.jdesktop.applet.util.JNLPAppletLauncher" width=800 height=400 archive="http://download.java.net/media/java3d/webstart/test/j3d-examples.jar, http://download.java.net/media/applet-launcher/applet-launcher.jar, http://download.java.net/media/java3d/webstart/release/j3d/latest/j3dcore.jar, http://download.java.net/media/java3d/webstart/release/j3d/latest/j3dutils.jar, http://download.java.net/media/java3d/webstart/release/vecmath/latest/vecmath.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"> <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/release/java3d-latest.jnlp"> <param name="progressbar" value="true"> <param name="noddraw.check" value="true"> </applet>
Note that the j3d-examples.jar, which contains the FourByFour class, does not need to be signed! Sun Microsystems, Inc. signs applet-launcher.jar, j3dcore.jar, j3dutils.jar, vecmath.jar, jogl.jar and gluegen-rt.jar, which contain the JNLPAppletLauncher and Java 3D's supporting classes; this is the only Java code which needs to be signed in order to deploy applets using Java 3D and is the only certificate the end user must accept.
The JNLPAppletLauncher home page contains more information about what files must be placed on the web server in order to enable the deployment of applets using Java 3D and other extensions.