Java 3D Example Programs

Run the Example Programs

In order to run the Java 3D example programs within your browser, you will need Java Plug-in. Refer to the instructions below for installing and using Java Plug-in.

Click on any of the hyperlinks below to run that example program in your browser using Java Plug-in.

Java Plug-in for Windows

On Windows, the Java Plug-in is automatically installed along with the Java 2 runtime environment. Applets can be run in either Netscape Communicator or Internet Explorer.

Some Java 3D applets require a larger heap size (memory pool) than the default provided by Java Plug-in. To increase the heap size to 64 megabytes, run the Java Plug-in Control Panel application and set the "Java Run Time Parameters" to "-Xmx64m". The Java Plug-in Control Panel application can be run from the Start menu in the Programs section.

Java Plug-in for Solaris

On Solaris, Java 3D applets can be run in Netscape Communicator 4.51 or later on Solaris 2.6 or later. After installing Netscape Communicator, you need to install Java Plug-in version 1.2 or later. Netscape and Java Plug-in are included with Solaris 8, you will need to download and install them for Solaris 2.6 and Solaris 7. Netscape Communicator and Java Plug-in may be downloaded for free from:

You should exit from Netscape before installing Java Plug-in. Additional patches may be required (see the website for details).

There is a bug in the Solaris version of Netscape that keeps it from finding Java extensions, such as Java 3D. To work around the problem, you need to copy the jar files into the lib/ directory in your Java 2 SDK as follows:

where $SDKHOME is the directory containing the Java 2 SDK into which you installed Java 3D (for example, /home/myhome/Solaris_JDK_1.2.2_05).

Next, you need to tell Java Plug-in to use the correct version of the Java 2 SDK. This is done using the Java Plug-in Control Panel applet, which can be run from within Netscape.

To change the JRE used by Java Plug-in, follow these instructions:

After installing Java Plug-in, you need to exit and restart your Netscape browser. You should ensure that your CLASSPATH environment variable is not set (unsetenv CLASSPATH) prior to starting Netscape.

Some Java 3D applets require a larger heap size (memory pool) than the default provided by Java Plug-in. To increase the heap size to 64 megabytes, run the Java Plug-in Control Panel applet and set the "Java Run Time Parameters" to "-mx64m".