Java 3d libraries

  1. Download from Java 3D
  2. unzip into ~/tmp/j3d
  3. This will create dir /tmp/j3d/j3d-1_5_2-macosx
  4. cd to /tmp/j3d/j3d-1_5_2-macosx and
  5. unzip
  6. pushd to /usr/share/java
  7. sudo mv ~/tmp/j3d/j3d-1_5_2-macosx .
  8. edit CLASSPATH to include each of the *.jar files in /usr/share/java/j3d-1_5_2-macosx/lib/ext.
CLASSPATH='.:/usr/share/java:/usr/share/java/mysql-connector-java-5.1.18/:/Users/admin/java/snippets/TIJ4-code:/usr/share/java/apache-log4j-1.2.16/log4j-1.2.16.jar:/usr/share/java/j3d-1_5_2-macosx/lib/ext/ij3dcore.jar:/usr/share/java/j3d-1_5_2-macosx/lib/ext/j3dutils.jar:/usr/share/java/j3d-1_5_2-macosx/lib/ext/vecmath.jar'; export CLASSPATH;

But how does library import* statement relate to the downloaded **.jar files.
How does:

import javax.vecmath.*;
import com.sun.j3d.utils.geometry.*;
import com.sun.j3d.utils.universe.*;

relate to

jn9ky0j-msd:ext admin$ ls *.jar
j3dcore.jar  j3dutils.jar vecmath.jar
jn9ky0j-msd:ext admin$ pwd
jn9ky0j-msd:ext admin$

well… copy the .jar file to ~/tmp/<somewhere> and …

tar xvf j3dcore.jar

This will show you the path (as in the import statement).

x javax/media/j3d/TriangleStripArrayRetained.class
x javax/media/j3d/UnorderList.class
x javax/media/j3d/UpdateTargets.class
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License