title: Error in staring with cordova: Command failed to execute : ant jar
body: <p>Hello I was trying to create my first app with phonegap but when I run "<strong>phonegap run android</strong>" it throw me the error:</p>
  
  <pre><code>[phonegap] detecting Android SDK environment...
  [phonegap] using the local environment
  [phonegap] adding the Android platform...
     [error] An error occured during creation of android sub-project. Creating Cordova project for the Android platform:
  Command failed to execute : ant jar
  </code></pre>
  
  <p>And when I use <strong>cordova -d platform add android</strong>:</p>
  
  <pre><code>Creating android project...
  Running bin/create for platform "android" with command: ""C:\Users\Fernando\.cordova\lib\android\cordova\3.1.0\bin\create"  "C:\Users\Fernando\Desktop\phonegap_examples\hello_phonegap\platforms\androi
  d" "com.phonegap.helloworld" "HelloWorld"" (output to follow)
  Creating Cordova project for the Android platform:
  
  Error: An error occured during creation of android sub-project. Creating Cordova project for the Android platform:
  
  Command failed to execute : ant jar
  
      at C:\Users\Fernando\AppData\Roaming\npm\node_modules\cordova\src\platform.js:246:30
      at ChildProcess.exithandler (child_process.js:636:7)
      at ChildProcess.EventEmitter.emit (events.js:98:17)
      at maybeClose (child_process.js:730:16)
      at Process.ChildProcess._handle.onexit (child_process.js:797:5)
  </code></pre>
  
  <p>In my path I added:</p>
  
  <pre><code>C:\apache-ant-1.9.2\bin;
  C:\Program Files\adt_Android\sdk\platform-tools;
  C:\Program Files\adt_Android\sdk\tools
  </code></pre>
  
  <p>I dont know what I am missing, I searched about it but I didnt find anything.</p>