I have the same issue as this user: ant - not recognized as an internal
however unfortunately none of the solutions have worked for me in that post or any other. I\
create a script including the following; (replace the ant and jdk paths with whatever is correct for your machine)
set PATH=%BASEPATH% set ANT_HOME=c:\tools\apache-ant-1.9-bin set JAVA_HOME=c:\tools\jdk7x64 set PATH=%ANT_HOME%\bin;%JAVA_HOME%\bin;%PATH%
run it in shell.