Thursday, July 4, 2013

"ant" is not recognized as an internal or external command

If you find that you run ant command in command prompt, there is an error that "ant" is not recognized as an internal or external command,

Please do the following steps.
  1. Download the apache-ant binary distributions zip file and unzip it under C:\bin directory
  2. Edit the computer environment variable (Right click My Computer and select properties > Advance > Environment Variable)
  3. Add C:\bin\apache-ant\bin in Path Variable
When open a command console, and type echo PATH. You will see the newly added path C:\bin\apache-ant\bin

No comments:

Post a Comment