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 -versioncommand to check the
antversion but got the below error.
- To solve the error followed the below steps.
- Opened the
Environment Variableand added the path of
ant downloaded softwareby creating
new variableas 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
Now edited the path variable and added the path as below.
- Refer to below screenshot
- Now after closing the environment variable try executing
ant-versionby opening the command prompt.