Cannot Compile java in Win NT

Can anyone help me?

I have a Windows NT 4.0 machine running JDK 1.2.2 and I have my class path & path set as follows:-

set path=c:\jdk1.2.2\bin;%PATH%

set classpath=.;C:\pat\Classes

Once setting these paths (via a Batch file, not Autoexec.bat though), I can run java files that I have successfully compiled on another machine, however I cannot compile any .java files I have created on the machine in question as this message occurs:-

error: Can't write: (name of file).class

1 Error

Before some tweaking I used to received this error :-

"Exception in thread "main" java.lang.NoClassDefFoundError sun/java/?

I have java successfully compiling & running on Windows 98 on another computer but cannot work this on out?

[799 byte] By [pr1981] at [2007-9-26 6:28:36]
# 1
This is the exact error I got before:-"Exception in thread "main" java.lang.NoClassDefFoundError sun/tools/javac/Main
pr1981 at 2007-7-1 15:35:08 > top of Java-index,Developer Tools,Java Compiler...
# 2
I would try removing the set commands from the autoexec.bat file, removing the JDK, re-installing the JDK, and setting the path and classpath using Control Panel/System/Environment. At least, that's how I have my NT 4.0 machine set up.
atmguy at 2007-7-1 15:35:08 > top of Java-index,Developer Tools,Java Compiler...
# 3
Thanks for the advice, and I have since got my computer to compile java files. It was a problem with my PATH settings.
pr1981 at 2007-7-1 15:35:08 > top of Java-index,Developer Tools,Java Compiler...