title: I'm trying to set my JAVA_HOME path to use my javac.exe?
body: <p>I'm on Windows 7 and I'm trying to set my <code>JAVA_HOME</code> path to use PhoneGap on android, when i create a project using the command line "cmd" it tells me that it can't find javac.exe? although i'm sure that I've set the variable right</p>
  
  <p>here's my stuff:</p>
  
  <pre><code>Variable name: JAVA_HOME
  Variable value: C:\Progra~1\Java\jdk1.7.0_17\bin
  (I've also tried to use: C:\Progra~1\Java\jdk1.7.0_17\bin\javac.exe)
  </code></pre>
  
  <p>My javac.exe location on my laptop <code>C:\Program Files\Java\jdk1.7.0_17\bin\javac.exe</code></p>
  
  <p>and it still tells me that it can't locate the <code>javac.exe</code></p>
  
  <p>What I type to create the project and i meet this problem is this:</p>
  
  <pre><code>C:\Users\user&gt;cd C:\Users\user\Desktop\phonegap-2.8.1\lib\android\bin
  
  C:\Users\user\Desktop\phonegap-2.8.1\lib\android\bin&gt;create.bat
  Cannot locate javac.exe using the PATH environment variable.
  Retry after adding directory containing javac.exe to the PATH variable.
  Remember to open a new command window after updating the PATH variable.
  Visit http://java.oracle.com if you need to install Java (JDK).
  </code></pre>
  
  <p>Also, i've tries restarting the windows and closing the command prompt and redownloading the JDK.</p>
  
  <p>Thank You.</p>