title: Error: Failed to run "javac -version" while running cordova build
body: <p>I use the JDK in my NetBeans Java webservice by just pointing the directory where I've downloaded it to the project on NetBeans. Cant I do the same to build my Ionic APK? I tried setting the JAVA_HOME inside <code>.bashrc</code> with this line </p>
  
  <pre><code>export JAVA_HOME=$HOME/Apps/jdk1.8.0_144
  </code></pre>
  
  <p>But it didnt work, I dont get any return from <code>java -version</code> in terminal.</p>