title: How to install Apache Ant on Windows 7
body: <p>I want to install Apache ant on windows. Here is some information below:</p>
  
  <ul>
  <li><a href="http://ant.apache.org/manual/install.html" rel="nofollow noreferrer">http://ant.apache.org/manual/install.html</a></li>
  <li><a href="https://stackoverflow.com/questions/5607664/installing-ant-ant-home-is-set-incorrectly-on-windows-7">Error installing Ant: ANT_HOME is set incorrectly</a></li>
  </ul>
  
  <p>I followed its descriptions and step by step but it still cannot work.
  I think the entire environment variables I set are correct. May please someone helps me? And some copies from cmd.</p>
  
  <pre><code>C:\&gt;echo %ANT_HOME%
  C:\Program Files\apache-ant-1.9.4
  
  C:\&gt;echo %JAVA_HOME%
  C:\Program Files\Java\jdk1.6.0_34
  
  C:\&gt;java -version
  java version "1.6.0_34"
  Java(TM) SE Runtime Environment (build 1.6.0_34-b04)
  Java HotSpot(TM) Client VM (build 20.9-b04, mixed mode, sharing)
  
  C:\&gt;ant 
  is not recognized as an internal or external command,operable program or batch file.
  </code></pre>
  
  <p>My Ant version is 1.9.4</p>