This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi guys, this is a pathetically obvious error which i am unable to resolve. The thing is i have a simple program that i am running from the command prompt through the command "java filename" and i keep getting the NoClassDefFoundError in thread main. The class file is in the same folder from which i am trying to run it , still i keep getting this runtime error. Can anyone help to get me out of this frustrating position. Thanks Raja
Originally posted by raja srinivas: this is a pathetically obvious error
that about a zillion of us have stumbled on at one time or other ! As stated above - either make sure that the directory that the class file is in is stated in the classpath, or have a dot reference in your classpath and start the app from the directory that it is in.
"JavaRanch, where the deer and the Certified play" - David O'Meara