title: Error installing Ant: ANT_HOME is set incorrectly
body: <p>I read all the possible solutions but the none worked.
  I downloaded the <strong>ant</strong> and put it in <code>C:\ant</code> (so I have <code>C:\ant\bin</code>)</p>
  
  <p>On Windows 7 under System variables I have variable called <strong>ANT_HOME</strong> with value</p>
  
  <pre><code>C:\ant
  </code></pre>
  
  <p>and variable called <strong>PATH</strong> with value</p>
  
  <pre><code>%ANT_HOME%\bin
  </code></pre>
  
  <p>And when I try in <strong>cmd</strong> (Command Prompt)</p>
  
  <pre><code>ant -version
  </code></pre>
  
  <p>I get </p>
  
  <blockquote>
    <p>ANT_HOME is set incorrectly or ant
    could not be located. Please set
    ANT_HOME.</p>
  </blockquote>
  
  <p>Also, if I try</p>
  
  <pre><code>echo %ANT_HOME%
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>C:\ant
  </code></pre>
  
  <p>I tried PATH = <strong>%PATH%;%ANT_HOME%\bin</strong> but the same situation. Anyone?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Variables are (name - value): </p>
  
  <pre><code>ANT_HOME - C:\ant
  CLASSPATH - .;C:\Program Files\Java\jre6\lib\ext\QTJava.zip
  ComSpec - %SystemRoot%\system32\cmd.exe
  FP_NO_HOST_CHECK - NO
  JAVA_HOME - C:\Program Files\Java\jdk1.6.0_23
  NUMBER_OF_PROCESSORS - 2
  OS - Windows_NT
  PATH - %ANT_HOME%\bin;%JAVA_HOME%\bin
  PATHEXT - .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
  PROCESSOR_ARCHITECTURE - x86
  PROCESSOR_IDENTIFIER - x86 Family 6 Model 15 Stepping 6, GenuineIntel
  PROCESSOR_LEVEL - 6
  PROCESSOR_REVISION - 0f06
  PSModulePath - %SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\
  QTJAVA - C:\Program Files\Java\jre6\lib\ext\QTJava.zip
  TEMP - %SystemRoot%\TEMP
  TMP - %SystemRoot%\TEMP
  USERNAME - SYSTEM
  windir - %SystemRoot%
  XNAGSShared - C:\Program Files\Common Files\Microsoft Shared\XNA\
  XNAGSv4 - C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\
  </code></pre>