Building the Java 3D Packages

To build the Java 3D packages, you must have the following three CVS repositories:

These three top-level directories must be named exactly as shown above and they must be sibling directories.

NOTE: you must first build the javax.vecmath package before building the Java 3D core and utilities packages. See the README-build.html file in the "vecmath" directory for instructions.

System Requirements

The following operating environments have been tested:

The following software must be installed:

Building Java 3D

Before you start building, your PATH must include the following directories:

The default target, jar-opt, creates an optimized jar files and native libraries.

Steps:

The above steps build both the Java and native code for javax.media.j3d and com.sun.j3d.* packages.

The build will be placed in j3d-core/build/<platform>/opt where <platform> is determined from the ant echo command:

To see other targets that are available, type "ant -projecthelp". Note that ant must be run from the top-level directory.

The default compiler for native code compilation is set to "gcc". This value is set in the build.properties file located in the j3d-core directory. The compiler property is "build.comp".

On a Solaris platform with Forte compiler installed, build.comp can be set to "forte". On a Windows platform installed Visual C++, build.properties can be set to "vc".

NOTE: For Windows platform only, the property "build.rend" in build.properties can be modified to use "d3d" (Direct3D API for rendering) besides the default value "ogl".

NOTE: You can also modify the properties through ant property command options e.g. "ant -Dbuild.comp=forte"

Running Java 3D

To run Java 3D, please refer to README-build.html in j3d-examples for details building Java 3D example programs.