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
compile error
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Re: compile error
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
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
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