ACTUALLY, in JDK1.2, people do not need
set CLASSPATH if they do not use third-part class libraries. JDK can find the JDK classes automatically.
You have set CLASSPATH as
D:\jdk1.2.2\bin\. This is wrong. It means
you ask JVM to look up the directories under
D:\jdk1.2.2\bin\. --- but nothing there.
Here I suggest a setting
set CLASSPATH=.; D:\jdk1.2.2\lib\dt.jar; D:\jdk1.2.2\lib\tools.jar;%CLASSPATH%;