View Single Post
Old 10-10-2005, 04:57 AM   #1 (permalink)
Java2
Registered User
 
Join Date: Oct 2005
Posts: 19
Java2 is on a distinguished road
Running a java program

I have managed to succesfully compile the following java program and it has created the class file correctly.

However when I try to run the program DOS comes up with this error.

Exception in thread "main" java.lang.NoClassDefFoundError: then the file name

this is the code of the main file
Code:
public class Hello 
{
  public static void main (String[] args) 
  {
    System.out.println("Hello World");
  }
}

Last edited by redhead; 10-10-2005 at 06:57 AM. Reason: Use of [code] tags added
Java2 is offline   Reply With Quote