title: Ant installation on windows server 2008 R2
body: <p>I'm trying to install apache ant on windows server 2008.I Setup the enviroment vars as:</p>
  
  <p><code>ANT_HOME=C:\ant
  JAVA_HOME=C:\ProgramData\Oracle\Java\javapath
  PATH=%JAVA_HOME%;C:\ant\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0</code></p>
  
  <p>And when I running ant -version it keeps bringing me this massage:
  ant_home is set incorrectly or ant could not be located. please set ant_home.</p>
  
  <p>Ant works perfectly on my local machine (win10), I just copied the setting same as it on my local machine and it is doesn't work.</p>
  
  <p>Thanks in advance</p>