If things do not work, especially simple things like ant -version, then something is wrong with your configuration. Before filing bug reports and emailing all the Apache Ant mailing lists
JAVA_HOMEcorrect? If they have quotes or trailing slashes, remove them.
CLASSPATH; if that is wrong things go horribly wrong. Ant does not need the
CLASSPATHvariable defined to anything to work.
error=2) on Windows usually means executable not found on the path.
If you can't fix your problem, start with the Ant User Mailing List. These are other ant users who will help you learn to use ant. If they cannot fix it then someone may suggest filing a bug report, which will escalate the issue. Remember of course, that support, like all open source development tasks, is voluntary. If you haven't invested time in helping yourself by following the steps above, it is unlikely that anyone will invest the time in helping you.
Also, if you don't understand something, the Ant User Mailing List is the place to ask questions. Not the developer list, nor the individuals whose names appears in the source and documentation. If they answered all such emails, nobody would have any time to improve Ant.
To provide feedback on this software, please subscribe to the Ant User Mailing List
If you want to contribute to Ant or stay current with the latest development, join the Ant Development Mailing List
A searchable archive can be found at https://marc.info. Other archives will be documented online at Mailing Lists Archives