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.
Victor:In VisAD, there are several "packages". For example, "visad.data.text" is a package. In order for the classloader to find the contents of this package, the CLASSPATH variable must point to the "root node". This is usually the visad.jar file itself. (If you look at the files in the visad.jar file, you'll file entries like: "visad/data/text/TextAdapter.class")
However, when you extracted the contents of the visad.jar file, the "root node", like Bill said, is the directory that contains the visad subdirectory. That's because the CLASSPATH says "look starting _here_". And when looking for the package "visad.data.text", it will look "starting here" for a subdirectory "visad/data/text".
Thus, if you were "in" the "/opt/visad-in-a-box" directory when you extracted the contents of the visad.jar file, your CLASSPATH should only point to "/opt/visad-in-a-box".
Hope that helps clarify. tom Victor Shum wrote:
Dear Visad users, I just don't understand why even I have included the classes in my classpath (in the setenv line which I sourced), when doing the make compile there is still complaints of its non-existence! Thanks for your advice in advance! Bst, Victor setenv CLASSPATH "/opt/visad-in-a-box/visad:/opt/visad-in-a-box/visad:/usr/local/src:/usr/local/java3d-1_3_2-build4-linux-i586/lib/i386:/usr/local/java3d-1_3_2-build4-linux-i586/lib/ext/javax/media/j3d:/usr/local/java3d-1_3_2-build4-linux-i586/lib/ext/javax/vecmath:/usr/local/java3d-1_3_2-build4-linux-i586/lib/ext/com/sun/j3d:/opt/j2sdk1.4.2_04/:/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/include/javax:/opt/visad-in-a-box/visad/examples:/opt/visad-in-a-box/visad/util:/opt/visad-in-a-box/visad/java3d" /usr/local/src/visad/java3d/DirectManipulationRendererJ3D.java:31: package javax.media.j3d does not exist import javax.media.j3d.*;
-- Tom Whittaker (tomw@xxxxxxxxxxxxx) University of Wisconsin-Madison Space Science and Engineering Center Cooperative Institute for Meteorological Satellite Studies Phone/VoiceMail: 608.262.2759
visad
archives: