• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

ant is not recognised as an internal or external command

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello. I'm a newbie here.

I am getting the error:
'ant' is not recognised as an internal or external command, operable program or batch file
every time I run the command ant -version in command prompt.

I have set the environment system variables- PATH & ANT_HOME as
set PATH=%PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin
and
set ANT_HOME=C:\Users\DGM(IT)\Downloads\Compressed\apache-ant-1.8.4-bin\apache-ant-1.8.4

When I run the command echo %ANT_HOME% I get the output
C:\Users\DGM(IT)\Downloads\Compressed\apache-ant-1.8.4-bin\apache-ant-1.8.4;

When I run the command echo %PATH% I get the output
C:\Program Files\Java\jdk1.7.0_79;C:\ProgramData\Oracle\Java\javapath;C:\Program
Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\s
ystem32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShel
l\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bl
uetooth Software\syswow64;C:\Program Files\Intel\Intel(R) Management Engine Comp
onents\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\P
rogram Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Fi
les (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)
\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x6
4;C:\Program Files (x86)\MATLAB\R2010a\runtime\win32;C:\Program Files (x86)\MATL
AB\R2010a\bin;C:\Program Files\Java\jdk1.7.0_79\bin;C:\Users\DGM(IT)\Downloads\C
ompressed\apache-ant-1.8.4-bin\apache-ant-1.8.4;\bin;

But when I run ant -version it says 'ant' is not recognised as an internal or external command, operable program or batch file.
Can somebody please help me?
 
Bartender
Posts: 5901
57
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows
 
Tamasa Patra
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much!
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!