Help! Can't use java command to execute application
I can compile using the javac command and that works fine. But then it can't seem to find the class that was just created.I get this message:"Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld"Please help!!!Thanks!
The file is saved as the class name.
Here's what happens:
C:\jdk1.2.2\bin>javac HelloWorld.java
C:\jdk1.2.2\bin>java HelloWorld
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
Here's the code that I'm trying to get to run:
/*
The HelloWorld application program
*/
public class HelloWorld
{
public static void main(String argv[])
{
System.out.println("Hello World!");
}
}
Just a note: Even if it is your own problem that you solve, post the corrective action.Since others read this forum for help, they may be experiencing the same or similar issues.Best of luck in your ventures.