View Single Post
Old Feb 20th, 2005, 1:42 PM   #1
n3o_X
Newbie
 
Join Date: Jan 2005
Posts: 29
Rep Power: 0 n3o_X is on a distinguished road
Errors when compiling simple program

I'm trying to program a small program:

class example {
public static void Main (String args[]){
System.out.println("java drives the web");
}
}

this file is Example.java.

I then compile the file: javac C:\java\Example.java

When i try running the file with: java C:\java\Example.class i get the error:

Exception in thread "main" java.lang.NoClassDefFoundError: C:\java\Example/class

Any way I can fix this?

Thanks for the help!
n3o_X is offline   Reply With Quote