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

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
visad.ss.SpreadSheet 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.

Cheers,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html


 
 
  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