title: How to build app from command line with ant?
body: <p>I am trying to build android project from command line.
  I tried to run this line in the command line:</p>
  
  <pre><code>C:\Users\davida\workspace_8\MyApp&gt;ant debug
  </code></pre>
  
  <p>And this is the answer:</p>
  
  <pre><code>'ant' is not recognized as an internal or external command,
  operable program or batch file.
  </code></pre>
  
  <p>And I tried the android developers <a href="http://developer.android.com/tools/building/building-cmdline.html" rel="nofollow noreferrer">http://developer.android.com/tools/building/building-cmdline.html</a>, 
  with no luck.</p>
  
  <p>First, how can I know if I have installed ant on my computer?
  (if I navigate thru eclipse tool bar to window -> preferences I have window with Ant Menu on the left contains "Editor" and "Runtime") Is it mean that the ant installed and I can build with it from the command line??</p>
  
  <p>I can debug and run with emulator and my device thru eclipse.</p>
  
  <p>After searching I read that I need to set java variables so I did:</p>
  
  <pre><code>JAVA_HOME = C:\Progra~2\Java\jdk1.7.0_01
  </code></pre>
  
  <p>my OS: win7</p>
  
  <p>Well.. I am lost any help??
  If someone have step by step sample I will be glad.
  Thanks.</p>