File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Mac OS and the fly likes server.sh gives error as Exception“main” java.lang.NoClassDefFoundError: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "server.sh gives error as Exception“main” java.lang.NoClassDefFoundError:" Watch "server.sh gives error as Exception“main” java.lang.NoClassDefFoundError:" New topic
Author

server.sh gives error as Exception“main” java.lang.NoClassDefFoundError:

John Bates
Greenhorn

Joined: May 31, 2012
Posts: 9
I am trying to start the "Program D" from the terminal,
following this instructions (http://www.noendpress.com/caleb/ALICE101_MacOSX/)
command in terminal "sh server.sh" gives me following error



My Server.sh file


Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2901
    
  12

John Bates wrote:I am trying to start the "Program D" from the terminal,
following this instructions (http://www.noendpress.com/caleb/ALICE101_MacOSX/)
command in terminal "sh server.sh" gives me following error



My Server.sh file




Java is searching your classpath and not finding the class you're asking it to load. PROGRAMD_CLASSPATH isn't defined in your server.sh file. Is it defined somewhere else?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: server.sh gives error as Exception“main” java.lang.NoClassDefFoundError:
 
It's not a secret anymore!