compile error

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Massimo

compile error

Post 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
Kok Leong

Re: compile error

Post 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...
Keith Primrose

Re: compile error

Post 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
Post Reply