I downloaded and set-up SDK to learn Java with the Headfirst book but am having the same problem others have with getting the cmd prompt to recognize the javac & java commands without typing in the path. I've been through the documentation and have read all the treads on the forum but can't get it to work.
I'm running Windows XP and just downloaded the latest which is sdk 6 I think.
I found the java/javac files at this location after installation: C:\Sun\SDK\jdk\bin
If I enter this path at the command prompt it will compile or run the 'HelloWorld' program fine. I changed my Path variable in settings to this same address but it doesn't work.
I also found a second & third java.exe file at:C:\Program Files\Java\jre1.5.0_11\bin & C:\Program Files\Java\jre1.5.0_06\bin and tried these as the path name but it did not work. If I enter this path in the prompt line along with 'java' and program name it won't run so I don't think this is the right.
One other thing, I changed the Path Class variable to C:\Sun\SDK\jdk\bin and it didn't work. I didn't copy what was in there originally which I'm kicking myself for (it was something java related). I deleted the file after this & it still doesn't work.