I'm running this target in Ant.
<target name="compile" depends="init"
description="compile the source " >
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}"/>
</target>
It's giving me this error.
C:Users..workspace..uild.xml:21: java.lang.UnsupportedClassVersionError:
com/sun/tools/javac/Main : Unsupported major.minor version 51.0
Here are the versions:
Apache Ant(TM) version 1.8.2
JDK version is JDK 1.7.0
Here's my Compiler settings in Eclipse.
Please help me resolve it.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…