title: Setting Java path on Windows for Ant
body: <p>Just downloaded the latest version of Ant and installed at:</p>
  
  <pre><code>C:\apache-ant-1.8.4
  </code></pre>
  
  <p>I added the following to the Env Path variable:</p>
  
  <pre><code>...;C:\apache-ant-1.8.4\bin
  </code></pre>
  
  <p>When I open a terminal window and type:</p>
  
  <pre><code>ant -version
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>Files\Java\jdk1.7.0_07"" was unexpected at this time.
  </code></pre>
  
  <p>In System variables I have the variable JAVA_HOME set to:</p>
  
  <pre><code>"C:\Program Files\Java\jdk1.7.0_07"
  </code></pre>
  
  <p>so it appears that "ant -version" is struggling to read the space in JAVA_HOME even though it is in quotes.</p>
  
  <p>I see an alternative post on this topic:</p>
  
  <p><a href="https://stackoverflow.com/questions/7697044/ant-and-eclipse">Ant and Eclipse</a></p>
  
  <p>but it doesn't tackle this specific point.</p>
  
  <p>Has anyone else encountered this problem and know the answer?</p>