I keep getting that error, in Command Prompt, even though I have followed both the online instructions and the Question solution here ant - not recognized as an internal.
I've followed this: ant.apache.org/manual/install.html and have downloaded Apache ANt 1.8.2 and set my variables to C:\ant, which is what I was using for the ant install. ANT_HOME was the variable that I was using. I added this on to the environment var path: %ANT_HOME%\bin;. I even made another variable and called it PATH and added %ANT_HOME%\bin; to it. I did all this in the System variables. After a restart, I logged in and it still did not allow me to use the ant -version command to retrieve any information about the ANT install. I have also started several new Command Prompt instances and I was still getting an error from "ant -version".
My System Variables have both ANT_HOME and JAVA_HOME accounted for. C:\ant is where my ANT_HOME is, so I set the ANT_HOME variable's value to that. %JAVA_HOME%\bin;%ANT_HOME%\bin; is at the end of the 'Path' variable. I resetted my computer and made several Command Prompt instances afterwards, and still doesn't recognize ANT. I can request Java's information without any difficulty, but not ANT's. Please assist.
I've set the variables correctly, and also set another PATH that isn't my original path variable. Please let me know if there is something that I'm doing wrong.
EDIT: updated by request of trashgod.