Pixel Posted June 22, 2018 Share Posted June 22, 2018 I still have an installation that runs under 1.7. There are some reports that will not run under that system, as it gives some errors about illegal binary revision 52.I am compiling the reports under ant. I do not see a direct way of directing the ant task to compile with 1.7. I tried creating a jasperreports.properties file and putting it in the path of JRAntCompileTask specifying 1.7, and that doesn't seem to work. For the record, here's the contents of jasperreports.properies file:org.eclipse.jdt.core.compiler.source=1.7org.eclipse.jdt.core.compiler.compliance=1.7org.eclipse.jdt.core.compiler.codegen.TargetPlatform=1.7[/code]This doesn't seem to change the behavior. Was support for this removed on 2013-05-08, or is that unrelated?Is there a way to get JRAntCompileTask to use 1.7?Here is the snippet from the build.xml file. <taskdef name="jrc" classname="net.sf.jasperreports.ant.JRAntCompileTask"> <classpath> <path path="${build.jars}/jasperreports.compile.17.jar"></path> <path> <fileset refid="jasperreports.jars"/> </path> </classpath> </taskdef> <target name="reports"> <jar destfile="${build.jars}/jasperreports.compile.17.jar" basedir="." includes="jasperreports.properties"/> <mkdir dir="${build.jrctmp}"/> <jrc srcdir="src" destdir="${build.classes}" tempdir="${build.jrctmp}" keepjava="true" xmlvalidation="true" > <classpath> <path path="${build.jars}/jasperreports.compile.17.jar"></path> <fileset refid="jasperreports.jars"/> <dirset dir="${build.classes}"/> <path refid="build.classpath"/> </classpath> <include name="**/*.jrxml"/> </jrc> </target>[/code] Link to comment Share on other sites More sharing options...
hozawa Posted June 23, 2018 Share Posted June 23, 2018 You'll need to use older version of JasperReports library to use JDK1.7.I think the recent versions only supports JDK1.8. Link to comment Share on other sites More sharing options...
Pixel Posted June 25, 2018 Author Share Posted June 25, 2018 NOTE: I am using 6.5.0, which is the next-to-last release that still supports JDK 1.7 but does not contain a bug introduced in 6.5.1.If this were not the case, hozawa's answer would have been correct. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now