NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi Victor, You can find Blackdown's Java3D port for Linux at: http://www.blackdown.org/java-linux/jdk1.2-status/java-3d-status.htmlRun this installer from within your Java installation directory. Afterward, Java3D-related JAR files will automatically be detected by Java; that is, you should not have to add anything to your CLASSPATH if you are using "javac" and "java" for development. (If you need the Java3D-related JAR files for "jikes" or other third-party software, they are: $JAVAHOME/jre/lib/ext/j3daudio.jar:$JAVAHOME/jre/lib/ext/j3dcore.jar:$JAVAHOME/jre/lib/ext/j3dutils.jar:$JAVAHOME/jre/lib/ext/vecmath.jar -- where $JAVAHOME is where you installed the JDK, usually something like /opt/java or /usr/local/java).
If you are using Linux with the default shell (bash), don't use setenv, use export. For example:
export CLASSPATH=/opt/visad.jarYou can test whether Java3D is installed correctly and your CLASSPATH is set properly by attempting to run the VisAD SpreadSheet:
java visad.ss.SpreadSheet If you want to run the VisAD examples, you will need to get them from: ftp://ftp.ssec.wisc.edu/pub/visad-2.0/visad_examples.jar You will need to extract this JAR file to its own directory: jar xvf visad_examples.jarAnd you will need to include the current directory (".") in your CLASSPATH, because the examples are packageless:
export CLASSPATH=/opt/visad.jar:. You should then be able to run the examples: cd visad/examples java DisplayTest Let us know if you are still having trouble. -Curtis Victor Shum wrote:
Dear Visad users,Thanks for Bill and Tom's advising, I've successfully used the correct visad.jar and installed correctly (tested by running the java visad.ss.SpreadSheet command). Now I came across the problem of getting java3d torun. I have done setenv CLASSPATH"/opt/visad.jar:/opt/jdk1.5.0_01/java3d-utils-src.jar" and have run java3d-sdk-1.3.1-linux-i386.bin under /opt/jdk1.5.0_01 successfully for it to generatejava3d-utils-src.jar in that directory.However, when I ran java HelloUniverse under the /opt/jdk1.5.0_01/demo/java3d dir I got a noclasdeferror .I read the README for the java3d and gathered I need the xfree86 software (right?)I downloaded the Xinstall.bin from: http://ftp.xfree86.org/pub/XFree86/4.4.0/binaries/Linux-ix86-glibc23/and ran that but I got the error telling me todownload extract and the rest of the Xfnt.bin etc.I'll do that but I'd also like to ask the visad community why that should be required to run java3d or is that bogus? Thanks! Bst, Victor
visad
archives: