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
You can use either the JDK or the JRE but:
JAVA_HOME is used by the launcher for finding the JDK/JRE to use. (JDK is recommended as some tasks require the java tools.)