title: Building android app via ant won't work from batch file?
body: <p>I'm trying to build my android app via commandline (batch file to be specific). I'm working on a phonegap/cordova app and I find it to be a bit of an overkill to use Eclipse only for compiling.</p>
  
  <p>If I try it via commandline it works. But if I run it in a batch file it looks like ANT is using JRE instead of JDK??</p>
  
  <pre><code>    Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\lib\tools.jar
  </code></pre>