Try adding these lines to your autoexec.bat file.You should remove previously added path and class path variables for java.
Give the filename as it is installed in your system, in path and classpath(here that is j2sdk1.4.1_01)(For this , right click on Start ,explore and check how the...