Hi All,
I tried to compile the simple "Hello World" program in my computer under Win XP, and I get this error:
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
the code is as follows:
public class hello //hello is the fileName
{
public static void main(String[] args)
{
System.out.println("Starting Java ...");
System.out.println("Hello World!");
}
}
What am I doing wrong?
TIA
