I need to compile a jar file using ant (1.7.0) to run under a specific version of Java (1.5). I currently have Java 1.6 on my machine. I tried setting:
<target name="compile"> <javac compiler="javac1.5" target="1.5" srcdir=.../> </target>
I also deleted
<property name="build.compiler" value="modern"/>
and there is no properties file. I am running Java 1.6 on Linux / SUSE
There is also an easy way to determine which version of Java is expected in the jar file.
javac ant
peter.murray.rust Sep 28 '09 at 16:23 2009-09-28 16:23
source share