I am trying to compile my java source code to target 1.8. I have set the following in the javac target.
Ant version: Apache Ant(TM) version 1.9.4 compiled on April 29 2014
Java version: 1.8
<target name="compile" depends="prepare">
<echo>Mayuran</echo>
<echo>Ant version: ${ant.version}</echo>
<echo>java version: ${ant.java.version}</echo>
<javac srcdir="${buildpath.src}" source="1.8" target="1.8" destdir="${buildpath.out}" classpathref="build.classpath" debug="${build-classes.debugOption}" includeantruntime="${build.inclAntRTOption}"/>
</target>
But when i check the generated class file using the javap tool, it is still showing the class files is major 52(JDK 7)
javap -classpath . -verbose com.mayuran.Test
Does anyone has idea why it is happening?
Regards, Mayuran