I pointed the JAVA_HOME to C:\\Program Files (x86)\\Java\\jre7. It works fine. Afterwards, I unzipped ant and set up the environment variables rela
JAVA_HOME
C:\\Program Files (x86)\\Java\\jre7
My JAVA_HOME points to the JDK. If it still doesn't work, check if you downloaded ant for Java 7 and not for Java 6.