java -version
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)
in ant i need to compile with java 1.5. I try like this:
<javac destdir="${dest.dir}/${package.name}/${model.dir}/${output.dir}"
classpathref="classpath"
debug="${javac.debug}" nowarn="${javac.nowarn}" fork="true" verbose="${verbose}"
deprecation="${javac.deprecation}" encoding="Cp1250" source="1.5"
target="1.5" memoryinitialsize="1024m"
memorymaximumsize="1024m">
but it looks like ant still compile with 1.6. Can i see which java ant use for compile? i get error of "Bad version number in .class file"