** Edit ** I have summarized the solutions I found to this problem in this post.
I am installing Android into Eclipse which I have been using for Java for 2 years. As part of this I have installed Ant and also upgraded to JDK1.7.0
Per the Cordova get started guide, I now run command line tests by typing java to see if it is recognized, then ant.
- java is recognized (thanks to Nikolay Ivanov's help in a previous question)
- ant fails to recognise anything
I have ANT_HOME set to "c:\Developer\apache-ant-1.8.4"
My PATH variable includes "%ANT_HOME%\lib".
I have also tried %ANT_HOME%\bin and %ANT_HOME%.
The ant.jar file is in c:\Developer\apache-ant-1.8.4\lib
But "ant" on the command line is still un-recognised.
FWIW, I now restart my command line interface every time I make a change in my environmental variables...
** Edit, I have removed %ANT_HOME%\bin from my build path and replaced it with "C:\Developer\apache-ant-1.8.4\bin".
I now have a new error "Buildfile: build.xml does not exist! Build failed"