Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: though I can definitely see the classes under javax/media/j3d

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

 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690