Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
What you can do to rectify this is to specify the version that your javac task is targeting like so:
<target name="compile" depends="prepare">
<javac destdir="${classes.dir}" classpathref="class.path" debug="on" deprecation="on" optimize="off" target="1.5">
<src path="${src.dir}"/>
</javac>
</target>
No comments:
Post a Comment