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

This error comes when program is not able to find ant.bat i.e. Ant is not installed properly. Please visit How to install Ant.

Related Post

Installing Apache Ant in Windows
Changing root user password in mysql
What will be output of the following program?
Starting tomcat in debug mode – Linux
nested exception is java.lang.IllegalStateException: Cannot create command without commandClass

Comments

2 Responses to “‘ant’ is not recognized as an internal or external command, operable program or batch file.”

  1. Fabiano on March 7th, 2011 7:02 pm

    i downloaded apache ant 1.8.2, unzipped it in C:\ANT created ANT_HOME C:\ANT\bin\ant.bat on the environment variable; i also created the JAVA_HOME on the environment variable; yet i couldnt run my and on cmd.

  2. Gerard on March 19th, 2011 7:57 pm

    Fix by adding ant.exe path (usually the bin folder in your ant folder) to your PATH variable, either your system environment variable set or your specific user variable set.

Leave a Reply