ANT Refer to the Java version mentioned in JAVA_HOME path in system Environment Variables.
In a Scenario where you have to run ANT with JDK 1.7 while Java 8 is installed in the system.
Update JAVA_HOME to the JDK1.7 Path and execute the ANT Command.
In a Scenario where you have to run ANT with JDK 1.7 while Java 8 is installed in the system.
Update JAVA_HOME to the JDK1.7 Path and execute the ANT Command.