title: Setting Environmental Variables to configure ANT,JAVA and TOMCAT
body: <p>Recently I have been trying to make changes so I can do builds through Ant and the command line. This has forced me to reconfigure my setup. In order to make java available on the class path  I typed the following in the command propmt...<br></p>
  
  <pre>set JAVA_HOME=C:\Java\JDK 1.6.0_08</pre>
  
  <p>that being the directory of my java installation. Then I will set my ANT_HOME variable to
  the following<br></p>
  
  <pre>set ANT_HOME=C:\Ant</pre>
  
  <p>I can check both of these following doing this by doing<br></p>
  
  <pre>javac</pre>
  
  <p>and </p>
  
  <pre>ant</pre>
  
  <p>on the command line and getting the usual output signifying that they are being read.Following this I will set them both on the <pre>path</pre> by doing the following<br></p>
  
  <pre>set PATH=%PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin</pre>
  
  <p>After doing this I check the command line for each of them and they will work fine.</p>
  
  <p>The problem that I am having is that randomly, I will go back and do the same command, and it will tell me that </p>
  
  <pre>"ant" is not recognized as an internal or external command...</pre>
  
  <p>I know this is the message you get when you type an incorrect command. Why is is that every website, tutorial and book I look at for configuring these services tells me to do the same process and none of them are working? Am I completely missing something?</p>