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...
set JAVA_HOME=C:\Java\JDK 1.6.0_08
that being the directory of my java installation. Then I will set my ANT_HOME variable to
the following
set ANT_HOME=C:\Ant
I can check both of these following doing this by doing
javac
and
ant
on the command line and getting the usual output signifying that they are being read.Following this I will set them both on the
pathby doing the following
set PATH=%PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin
After doing this I check the command line for each of them and they will work fine.
The problem that I am having is that randomly, I will go back and do the same command, and it will tell me that
"ant" is not recognized as an internal or external command...
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?