I'm running this target in Ant.
description="compile the source " >
It's giving me this error.
C:\Users\..\workspace\..\build.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.
Answer
The runtime jre was set to jre 6 instead of jre 7 in the build configuration window.
No comments:
Post a Comment