Page 1 of 1

compile error

Posted: Mon Sep 03, 2001 2:08 pm
by Massimo
I'm quite a beginner in java programming and i don't know how to face this problem: i try to compile a java program, and the compiler sends this message:

java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
Exception in thread "main"


what's the meaning and what can i do?

thanks

Max

Re: compile error

Posted: Wed Sep 19, 2001 12:17 am
by Kok Leong
Please check http://developer.java.sun.com/developer/ on how to set your system CLASSPATH variable, as this has no relation to the editor unless you are trying to use the default javac tool...

Re: compile error

Posted: Mon Oct 15, 2001 8:49 pm
by Keith Primrose
This is weird. I am having the same problem.

I was using the machine yesterday without problems but today I am getting the same error. AFAIAA I have changed nothing.

All my .java files are in subdirectories of E:\DATA\MSC

The CLASSPATH enviroment variable is set to E:\DATA\MSC

The error I get is:

Exception in thread "main" java.lang.NoClassDefFoundError:

followed by the class name.

This is happening with class files that compiled and ran OK yesterday. Any Ideas?

TIA

Keith