Javac

path = D:\JDK141_03\bin;d:\jdk141_03\lib\tools.jar;.;

classpath = D:\JDK141_03\bin;d:\jdk141_03\lib\tools.jar;.;

When javac is typed, the following error is shown

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

ain

But when java is typed, it is working fine

[348 byte] By [PrabhuSai] at [2007-9-30 12:22:33]
# 1
get rid of the classpath...
bloid at 2007-7-4 15:40:40 > top of Java-index,Administration Tools,Sun Connection...
# 2
I mean classpath should be (at most) "."
bloid at 2007-7-4 15:40:40 > top of Java-index,Administration Tools,Sun Connection...
# 3
Duplicate- see http://forum.java.sun.com/thread.jsp?forum=17&thread=535744&tstart=0&trange=100
ChuckBing at 2007-7-4 15:40:40 > top of Java-index,Administration Tools,Sun Connection...
# 4
You can refer link on the message above for more details.Example:( in your command-prompt, C:\ )1. C:\set CLASSPATH=2. C:\javac HelloWorld.java3. C:\java HelloWorld
engtat at 2007-7-4 15:40:40 > top of Java-index,Administration Tools,Sun Connection...