title: Cordova / Phonegap Android - Java / Ant Issue on build?
body: <p>I have been all over this site, so please forgive me if someone else as posted this but I could not find anything that could fix my issue.</p>
  
  <p>I am working on a Mac. With my IOS build, I have no problems at all.</p>
  
  <p>However with Android, I am 'now' having some issues, when I run <code>cordova build android</code>  I get the following error,</p>
  
  <pre><code>/Users/x/Library/Android/sdk/tools/ant/build.xml:601: The following error occurred while executing this line:
  /Users/x/Library/Android/sdk/tools/ant/build.xml:720: The following error occurred while executing this line:
  /Users/x/Library/Android/sdk/tools/ant/build.xml:734: Class not found: javac1.8
  
  /Users/x/Desktop/One/platforms/android/cordova/node_modules/q/q.js:126
                  throw e;
                        ^
  Error code 1 for command: ant with args: debug,-f,/Users/x/Desktop/test/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
  
  ERROR building one of the platforms: Error: /Users/x/Desktop/test/platforms/android/cordova/build: Command failed with exit code 8
  You may not have the required environment or OS to build this project
  </code></pre>
  
  <p>I use the word 'now' because this error I thought I had fixed and it was working but I have changed nothing with the <code>PATHS</code> Any where in my terminal, I can run <code>javac - version</code> which gives me <code>javac 1.8.0_25</code>. So it can different see java. </p>
  
  <p>So I thought Apache Ant might have gone wrong, but when I run <code>ant -version</code> I get <code>Apache Ant(TM) version 1.9.4 compiled on April 29 2014</code> - So yes I am running Ant version 1.9.4, which as far as I am aware should work with my java version?</p>
  
  <p>So my system can access but java &amp; ant without any issue but I can not build my new Android app. I am now running this in a clean, new (without any plugins or my code) build and still it will not work. </p>
  
  <p>Any help?</p>
  
  <p>Thanks</p>