I have installed ant(apache-ant-1.7.0). But when i run the ant command in dos command prompt, it says
‘ant’ is not recognized as an internal or external command, operable program or batch file.
where i'm going wrong.
That just means it's not on the path.
Edit your PATH environment variable to include Ant's "bin" directory. The exact steps for editing your path with depend on your operating system, but for example on XP:
Add the Ant bin directory without any quotes. Use a semi-colon to separate it from another entry. For example, you might have:
c:\Program Files\Utils;c:\Program Files\Ant 1.7\bin
For anyone that comes across this article:
Always remember, don't put a space after each semicolon.
Good:C:\Ninja;C:\ant
Bad:C:\Ninja; C:\ant
ant install dir
. If you haven't such, download ant
and unzip it.ant install dir
into ANT_HOMEIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With