Javac Error

everytime i use javac in DOS ( in textpad it works fine! ), just typing javac -? or trying to compile something results in this error :

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

I tried reinstalling 1.4.2, but it is still the same, anyone know a solution ?

[319 byte] By [Mr_Xiaa] at [2007-9-28 19:38:25]
# 1

Your PATH is wrong.

Open a console window.

Switch to the directory where javac is.

Type the following command "set PATH=."

Then type the following command "java -version"

I suspect it will work. If so you need to adjust your PATH variable so it has the java directory (bin and jre/bin) first.

jschella at 2007-7-12 18:19:06 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...