http://java.sun.com/products/java-media/3D/
.
You need not install Java3D if you are not planning on using GR domain.
If you plan on recompiling the GR domain, then install the Java 3D SDK and runtime. If you plan on only running the GR domain demos, then installing only the Java 3D runtime should be sufficient.
We have verified the demos with the Java 3D 1.2.1_04 SDK (DirectX Version).
Note that JDK1.4.0 and later requires Java 3D 1.2.1_04 or later. If you run with Java 3D 1.2.1_03 and JDK1.4.0, the GR demos will fail to initialize and you will see the message:
Fail to create back buffer - DDERR_INALIDPARAMThe Java 3D 1.2.1_04 release notes say that this bug:
4470749 Java3D fail to initialize underlying OGL/D3D library in jdk1.4was fixed in Java 3D 1.2.1_04
If you are running Ptolemy II under Web Start, see Installing Java 3D for use with Web Start
If, when you run the GR domain demos, you get a message
about d3d8.dll
missing, then you probably need to install
DirectX.
DirectX can be downloaded from
http://www.microsoft.com/downloads/search.aspx?displaylang=en&categoryid=2
http://java.sun.com/products/java-media/3D/
.
demo/java3d
subdirectory
in your JDK directory, for example
file:///C|/j2sdk1.4.2_04/demo/java3d/index.html
and run the HelloUniverse demo
http://java.sun.com/products/java-media/3D/demos/
java.lang.NoClassDefFoundError: javax/media/j3d/SceneGraphObjectThen be sure that the Java 3D jar files (j3daudio.jar, j3dcore.jar, j3dutils.jar,vecmath.jar) are located in the lib/ext directory for the plugin.
c:/Program Files/javasoft/JRE
and in theory the Java 3D installation should place the jar files, but
you may need to copy them by hand.
cp c:/j2sdk1.4.2_04/jre/lib/ext/* c:/Program\ Files/Java/j2re1.4.2_04/lib/extYou may also need to copy
J3D.dll
cp c:/j2sdk1.4.2_04/jre/bin/J3D.dll c:/Program\ Files/Java/j2re1.4.2_04/bin