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:Not sure why you want to extract the classes from visad.jar. However, let's say that your directory tree looks like this:
/src/visad/ /src/edu/ /src/ucar/ /src/visad/examples/ <-- should be where you put the examplesIn otherwords, you extracted the contents of the visad.jar file while you were "in" the /src/ directory. In this case, your CLASSPATH need contain only this:
CLASSPATH=./:/srcJava versions > 1.3.1 find their own environment, so you don't need to have any of that in the CLASSPATH. Plus, the Java3D is placed under the JRE so you don't need to point there, either.
If you were just using the visad.jar file without changes, you can just put it into your CLASSPATH, as in:
CLASSPATH=./:/path-to-jars/visad.jarBoth the compiler and runtime will then find all the visad classes in the JAR file.
Hope that helps. tom Victor Shum wrote:
Dear Visad Users,I have extracted the classes from visad.jar and setmany classpaths to the CLASSPATH variable. When I ran java Test68 under examples I got thefollowing errors, could someone guide me on what theclasspaths for these are?:[root@sbc]#java Test68 Exception in thread "main" java.lang.NoClassDefFoundError: visad/util/CmdlineConsumer at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
-- 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: