I've just bought a new pc and for the life of me can't get the dang compiler to work in dos mode. I've downloaded j2re22.214.171.124_1 onto XP and when I try and compile a prog I get this message: "The name specified is not recognized as an internal or external command, operable program or batch file." I saved the j2re126.96.36.199_01 in this file : C:\Program Files\Java This is what's in my path file: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C;\j2re1.4.0_01\BIN Where am I going wrong?
Did you download j2re188.8.131.52_1 or j2sdk184.108.40.206_1? %SystemRoot%\system32;? I downloaded j2sdk220.127.116.11_1 which contained j2re18.104.22.168_1. j2re22.214.171.124_1 was expanded when j2sdk126.96.36.199_1 was installed. If its really j2sdk188.8.131.52_1 then change your PATH to %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\j2sdk1.4.0_01\bin;C:\j2re1.4.0_01\jre\bin ( Note: your original path included a ;C;\j2re1.4.0_01 , semicolon after drive letter ) Add to CLASSPATH c:\j2sdk1.4.0_01\lib;.;c:\java; (where C:\Java is the directory where you are coding) Note that directory %SystemRoot%\system32 (contained in the PATH) could also contain java or javac executables.
Joined: Jan 23, 2002
I've just checked my files and there is no record of j2sdk184.108.40.206_1. I'm sorry for sounding stupid here, but is it j2sdk220.127.116.11_1 that I should initially install? If so, do I need to delete the files that I have alraedy downloaded?
The SDK is the "software development kit", so if you were wanting to compile something, that probably means you were wanting to develop it too !!! Sorry I did not make that more explicit in my initial message. Good Luck !!!