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!
[283 byte] By [toasterbob] at [2007-9-26 1:15:06]
# 1
Use class name when saving .java file. for example class HelloWorld{.... save java file -> HelloWorld.java j.
j_pal at 2007-6-29 0:41:03 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 2

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!");

}

}

toasterbob at 2007-6-29 0:41:03 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 3
Never Mind. I figured it out. Thanks though!
toasterbob at 2007-6-29 0:41:03 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 4
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.
GLJdotcom at 2007-6-29 0:41:03 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 5
The problem was that the current folder was not included in the classpath
shubhrajit_c at 2007-6-29 0:41:03 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 6
Well,whick folder did you put the class in?Make it current.
Wolfgang_Jia at 2007-6-29 0:41:03 > top of Java-index,Archived Forums,New To Java Technology Archive...