by @kodeazy

ant is not recognized as an internal or external command operable program or batch file.

Home » apache-ant » ant is not recognized as an internal or external command operable program or batch file.
  • I have downloaded the ant and tried to execute ant -version command to check the ant version but got the below error. Image not found
  • To solve the error followed the below steps.
  • Opened the Environment Variable and added the path of ant downloaded software by creating new variable as shown in below screenshot.
  • variable name: ANT_HOME
  • variable value:C:\Program Files\softwares\apache-ant-1.10.12\
  • Refer to below screenshot for clear view Image not found
  • Now edited the path variable and added the path as below.

    %ANT_HOME%\bin
  • Refer to below screenshot Image not found
  • Now after closing the environment variable try executing ant-version by opening the command prompt. Image not found