Jasper Reports: compile .jasper file for earlier version of Java
posted 8 years ago
Hi- I have a web application that runs on a Websphere box. The Websphere version is an older version that requiires JVM V.1.4. I have recently upgraded to JDK version 1.6 on my development box. For my reports, I compile the .jasper files on the development box and deploy those along with the corresponding .jrxml file to the server. Now, after I compile the .jasper files on my development box, my reports are blowing up on the server with a Java version mismatch error. I looked at the Jasper APIs and cannot find an overloaded signature of the JasperCompileManager.compileReportToFile() method that takes a version number as an argument. Does anyone know of a way to get the JasperCompileManager.compileReportToFile() method to compile for an earlier version of Java (short of reverting my JDK back to v.1.4 on my development box)?