Alright, I just started trying to learn Java, and I'm using the Java Head First (2nd Edition) book to help me learn. One of the things it tells me to do is "add an entry to your PATH environment variable that points to the /bin directory". I already installed Java 7. The bin directory is located in: C:\Program Files\Java\jre7. I went to Control Panel and got to the Environment Variables window, and from there I proceeded to make a User Name variable called "JAVA_HOME" like this site suggested, with the Value set as "C:\Program Files\Java\jre7". Then, I proceeded to edit the System variable "Path", with "%JAVA_HOME%\bin" as the name (without the quotation marks of course), and I placed this at the beginning of the Value without deleting any of the pre-existing text that was already there. I made sure to include a semicolon after the %JAVA_HOME%\bin. When I ran command prompt and typed in "javac", it gives me this message:
" 'javac' is not recognized as an internal or external command, operable program or batch file."
Apparently, I'm not supposed to get this message... At least, I don't think I should be getting it. I restarted my computer to see if that would change anything, but it didn't. I triple checked the values of the environment variables to see if I made a typo, but I failed to find any. I looked through many of the topics related to this problem, but I can't make heads or tails of any of the information provided... Can someone please help me? I apologize for the stupid question and for my ignorance ... :\
By the way, I'm running Windows 7 64-bit, if that makes any difference at all... Any help is greatly appreciated!