To
build the Java 3D example programs, you must first checkout the j3d-examples
CVS
repository on java.net. For example, run
the cvs checkout command as follows:
cd <cvs-root-dir>
cvs checkout j3d-examples
Any operating environment that supports J2SE and Java 3D should
work.We have built j3d-examples on the following operating environments:
The following software must be installed:
Before you start building, please check that your PATH must include the following directories:
NOTE that Java 3D must be installed into the JDK that you have in
your path OR you must put the
Java 3D and vecmath jar files (j3dcore.jar, j3dutils.jar and
vecmath.jar) in your CLASSPATH and the directory containing the
Java 3D libraries in your LD_LIBRARY_PATH (Solaris or Linus) or
PATH (Windows).
To build all examples:
cd <cvs-root-dir>/j3d-examples
ant
This will build all example programs, each one being placed in the
corresponding src/<ExampleProgram>
directory.
You may run
ant from a subdirectory in order to just build that program. For
example, to build the HelloUniverse program:
cd <cvs-root-dir>/j3d-examples/src/HelloUniverse
ant
To run an example program, cd to the desired directory and execute
java from there. You must ensure that CLASSPATH is either not set, or
contains "." in its list of directories. For example, to run the
HelloUniverse program:
cd <cvs-root-dir>/j3d-examples/src/HelloUniverse
java HelloUniverse
You may also point your Java-enabled web browser at the
src/index.html
page and run Java 3D example programs
from within your browser. Java 3D must be installed into the JDK
in order to run Java 3D programs from within a browser.