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 comm
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