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.
i'm using jdk 1.3 with windows 2000 professional. i have set the path and the classpath in environment variables. i can use javac very conviniently but every time i java a program, for example java xyz i get the message Exception in thread "main" java.lang.NoClassDefFoundError: xyz
my details for path and classpath are classpath=C:\jdk1.3\lib;C:\j2sdkee1.2.1\lib\j2ee.jar path=C:\jdk1.3\bin;C:\j2sdkee1.2.1\bin
i have used many programs earliear and they worked fine but this a new problem. i tried using both old and new class files.
Try setting path for only one jdk. or else look up your code, u must have a "public static void main(String args)" inside ur main class if this is not there, u'll get the main class not found exception