ANT_HOME should be set to the directory where ant is installed. e.g.
If your ant installation is located at: C:\tools\apache-ant
Your ANT_HOME should be set: set ANT_HOME=C:\tools\apache-ant
at the System Environment settings and not User Environment Settings