title: Javac isn't working in windows command prompt
body: <p><a href="https://stackoverflow.com/questions/1678520/javac-not-working-in-windows-command-prompt">javac not working in windows command prompt</a></p>
  
  <p>^I tried the suggestions on this post, and it was SLIGHTLY helpful, but not completely.</p>
  
  <p>I opened up my command prompt and I typed in "javac" after putting in the path in my Environment Variables and it didn't work, at which point I googled it and found that thread.</p>
  
  <p>I knew that I had closed and re-opened my cmd already, and that didn't work, so I skipped that bit and I saw the part telling me to make sure that javac.exe exists, which I verified with the "dir" command in the cmd. Afterwords, while in the "C:\Program Files\Java\jdk1.7.0_25\bin" folder on the command prompt, I typed in the next bit of advice, which was</p>
  
  <pre><code>for %i in (javac.exe) do @echo %~$PATH:i
  </code></pre>
  
  <p>After entering this into my command prompt, I got the message "ECHO is on". Upon seeing this, I typed in "javac" again and this time, it worked. So I decided to test this out by backing out of the directory and going to a folder in which I had a .java file saved and running it, but it again told me that</p>
  
  <pre><code>'javac' is not recognized as an internal or external command, operable program or batch file.
  </code></pre>
  
  <p>This was disappointing. I think it'll only work if I'm INSIDE the bin file on the command prompt, which is annoying because I'm not an administrator on this computer and it will be annoying to always have to get admin permission (from my parents) to code. They will also never give me the password. Can anyone help me? Thanks in advance! And sorry for the huge wall of text...</p>
  
  <p>EDIT: Someone has asked what would the output of "echo %path%" be. It is this:</p>
  
  <pre><code>C:\Windows\system32;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
  </code></pre>
  
  <p>^Is it not supposed to say this?</p>
  
  <p>EDIT 2: @brano88...I think I did? I right clicked computer, went to properties, went to advanced system settings, clicked Environment Variables and went to the top part and pressed "New..." There, I entered the Variable Name as Path and the Variable Value as the location of the bin folder. Is this incorrect? I followed a YouTube tutorial step by step while doing this.</p>
  
  <p>This one: <a href="http://www.youtube.com/watch?v=Hl-zzrqQoSE" rel="nofollow noreferrer">http://www.youtube.com/watch?v=Hl-zzrqQoSE</a></p>