there is one little typo error.CLASSPATH=%CLASSPATH%;.;C:\j2sdk1.4.1\lib\tools.jarBut the Classpath entry in the autoexec.bat is useless(you do not need it).