Re: Running jar file gives error message

Hi Jesse,

> I'm trying to run VisAD =.jar using a batch file located in the above
> directory, and containing the line:
> java -jar visad.jar
> I get an error message reading:
> Failed to load Main Class Manifest attribute from visad.jar
> What am I missing?

The visad.jar file does not include a Main-class attribute that
identifies a class whose main() method should be run.  This is
because VisAD is an API rather than an application.  The visad.jar
file include many classes with main() methods, such as and visad.python.JPythonFrame.  You need to
add visad.jar to your CLASSPATH, and then identify a particular
class in your java command line.  Note that many people write
their own applications that call the VisAD API.

Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738