I have installed Ant, and when I try the command ANT
or ant -version
I receive the error message:
'ant' is not recognized as an internal or external command, operable program or batch file.
I tried several solutions suggested online but none of them work. I am using Windows 7. Below is the output of the command echo %PATH%
C:\Users\t_boulc>echo %PATH%
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\Wind owsPowerShell\v1.0\;C:\Program Files (x86)\RSA SecurID Token Common;C:\Program F iles (x86)\Perforce\;C:\Program Files\apache-ant-1.9.1\binC:\Users\t_boulc>ANT
'ANT' is not recognized as an internal or external command, operable program or batch file.C:\Users\t_boulc>ant -version
'ant' is not recognized as an internal or external command, operable program or batch file.C:\Users\t_boulc>echo %PATH%
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\Wind owsPowerShell\v1.0\;C:\Program Files (x86)\RSA SecurID Token Common;C:\Program F iles (x86)\Perforce\;C:\Program Files\apache-ant-1.9.1\bin
Directory of C:\Program Files\apache-ant-1.9.1
06/28/2013 02:49 PM <DIR> .
06/28/2013 02:49 PM <DIR> ..
06/28/2013 03:23 PM <DIR> bin
06/28/2013 02:46 PM <DIR> etc
06/28/2013 02:25 PM 11,253 fetch.xml
06/28/2013 02:25 PM 4,445 get-m2.xml
06/28/2013 02:25 PM 126 INSTALL
06/28/2013 02:25 PM 86,299 KEYS
06/28/2013 03:23 PM <DIR> lib
06/28/2013 02:25 PM 15,289 LICENSE
06/28/2013 03:23 PM <DIR> manual
06/28/2013 02:25 PM 218 NOTICE
06/28/2013 02:25 PM 4,119 README
06/28/2013 02:25 PM 216,873 WHATSNEW
8 File(s) 338,622 bytes
6 Dir(s) 202,572,378,112 bytes free
C:\Program Files\apache-ant-1.9.1>