title: setting up environment variables in windows 7 for java and ant
body: <p>I have a book that says to do the following.</p>
  
  <ol>
  <li>Add a JAVA_HOME and ANT_HOME environment variable. - check</li>
  <li>Add $JAVA_HOME/bin and $ANT_HOME/bin to my path variable - check</li>
  </ol>
  
  <p>When I then go to the command prompt and try ant -version it says ant is not a recognized command.  If I then take the value I plugged into the ANT_HOME variable and use it in place of $ANT_HOME it all works.  Is this the way it's supposed to work in windows?  I'm not sure so I just figured that whatever was put in ANT_HOME was then parsed in the path variable when used as $ANT_HOME.  Thanks.</p>