Exception in thread "main" java.lang.NoClassDefFoundError: app
Hello! I loaded j2sdk_1.4.2_04 onto may machine and I wanted to test a simple hello program below.
// Hello Pogram
public class app
{
public static void main(String[] args)
{
System.out.println("Hello from Java!");
}
}
// End of Hello Program
When I run it by typeing
java app (note the file name is app.java)
I get the error "Exception in thread "main" java.lang.NoClassDefFoundError: app"
I checked various support pages and they mentioned the classpath not being set. So, I tried setting the class path to c:\j2sdk_1.4.2_04\bin;.;c:\j2sdk_1.4.2_04\lib but I still couldn't resolve the problem. I have the app.java in the c:\j2sdk_1.4.2_04\bin and this is also where I am running the java app command.
Thanks for your help,
david fish (beginner)

