I have installed ANT on my machine , I have set the environment variables for ANT_HOME , when i am trying to test the ant installation through command window console by providing the below command ant -v I am getting the below error
enter code here
C:\Users\XXXXXX>ant -v
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/to
ols/ant/launch/Launcher : Unsupported major.minor version 52.0
But i have checked the JDK version and JRE Version , both seems to be the same . PFB the output of the versions respectively
C:\Users\XXXXX>java -version java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
C:\Users\XXXXX>javac -version javac 1.7.0_80
Compiler versions and run time versions both are same , what could be the issue here