This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Engineering » Mac OS
Reply 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
Bartender

Joined: Oct 01, 2001
Posts: 2550
    
  10

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?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: server.sh gives error as Exception“main” java.lang.NoClassDefFoundError:
 
Similar Threads
classpath trouble
ClassNotFoundException error
Exception in thread "main" java.lang.NoClassDefFoundError
Terminal Error when Loading .class
java unable to recognize class where my IDE does