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\
Had the same problem. The solution is to add a \ at the end of %ANT_HOME%\bin so it became %ANT_HOME%\bin\
\
%ANT_HOME%\bin
%ANT_HOME%\bin\
Worked for me. (Should be system var)