title: cordova is not using correct JAVA_Home location?
body: <p>I am trying to build an android project with cordova but I am having trouble with the JDK.</p>
  
  <p>I have made sure the path is correct and point to my JDK:</p>
  
  <pre><code>C:\Program Files\nodejs;
  C:\Mobile\Android\adt-bundle-windows-x86_64-20131030\adt-bundle-windows-x86_64-20131030\sdk\tools; C:\Mobile\apache-ant-1.9.3-bin\apache-ant-1.9.3\bin; C:\Program
   Files\Java\jdk1.7.0_55\bin; C:\Program Files\Java\jre7\bin
  </code></pre>
  
  <p>and when I run echo %JAVA_HOME% in my command prompt it shows </p>
  
  <blockquote>
    <p>C:\Program Files\Java\jdk1.7.0_55\bin</p>
  </blockquote>
  
  <p>but when I run the cordova build command it states JAVA_HOME Currently Set</p>
  
  <pre><code> C:\Program Files\Java\jre7
  </code></pre>
  
  <p>I have also set a system variable under path called java_home and set it to</p>
  
  <pre><code> C:\Program Files\Java\jdk1.7.0_55\bin
  </code></pre>
  
  <p>I have also restarted my system since setting the path</p>
  
  <p>can anyone tell me what is going wrong?</p>