title: Phonegap Build Error: Failed to run "javac -version", make sure that you have a JDK installed
body: <p>running:</p>
  
  <pre><code>phonegap build android
  </code></pre>
  
  <p>with android SDK and Java SDK installed, I get the following error:</p>
  
  <p>Error: Failed to run "javac -version", make sure that you have a JDK installed.
  You can get it from: <a href="http://www.oracle.com/technetwork/java/javase/downloads" rel="nofollow noreferrer">http://www.oracle.com/technetwork/java/javase/downloads</a>.</p>
  
  <p>I have tried adding the "java\jdk-9\bin" to environment variables, and PATH, etc. No luck!</p>
  
  <p>My suspicion is that phonegap is trying to use the runtime version of Java as opposed to the SDK.</p>