Running java after file is compiled
I compiled a simple file
class Grades {
public static void main(String args[]) {
System.out.println("it's not much, but it's a start...");
}
}
after compiling, which seemd to work fine, when I tried to run it I got the following error message:
Exception in thread "main" java.lang.NoClassDefFoundError: Grades
Am I supposed to set a classpath? If so is this a command I write in my autoexec.bat or where do I put it.
I cannot find where the classes are stored. Please advise

