title: java comand works but not javac?
body: <p>ok so I got a new PC</p>
  
  <p>Windows 7 Pro 64 bit Service Pack 1</p>
  
  <p>I installed jdk-7u25-windows-x64 ( jdk 1.7.0_25)</p>
  
  <p>It is installed in default location C:\Program Files\Java\jdk1.7.0_25</p>
  
  <p>I set the JAVA_HOME environment variable to C:\Program Files\Java\jdk1.7.0_25</p>
  
  <p>I added %JAVA_HOME%\bin to the Path environment variable (yes I used a ; before I added it)</p>
  
  <p>Clicked Ok</p>
  
  <p>Closed all CMD windows opened them up </p>
  
  <p>And now If I run the command java I get the expected output </p>
  
  <p>But If I run the javac command I get this</p>
  
  <pre><code>C:\Users\AJ&gt;javac
  'javac' is not recognized as an internal or external command,
  operable program or batch file.
  </code></pre>
  
  <p>I have tried Fiddling with the path but no luck, and have restarted my PC etc. no luck</p>
  
  <p>Also it seems to work if I am in the jdk\bin directory</p>
  
  <pre><code>C:\&gt;cd C:\Program Files\Java\jdk1.7.0_25\bin
  
  C:\Program Files\Java\jdk1.7.0_25\bin&gt;javac -version
  javac 1.7.0_25
  
  C:\Program Files\Java\jdk1.7.0_25\bin&gt;
  </code></pre>
  
  <p>how do I get javac command to run correctly like java is doing</p>