Yeah! I’m using Jasper Reports library to generate Reports for my j2ee web application. It’s open source library developed by JasperSoft Inc, fully written in Java. So here’s my problem -
JasperReports 1.2.7 - I try to compile the .jrxml (Jasper report template) file using following code snippet.
JasperDesign jasperDesign = JRXmlLoader.load(reportFile.getPath());
jasperReport = JasperCompileManager.compileReport(jasperDesign);
And after executing this I get JRException -
net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
1. java.lang.Boolean cannot be resolved or is not a type
value = (java.lang.Boolean)(new Boolean( 1 <= ((java.lang.Integer)parameter_TOTAL_COLUMN_COUNT.getValue()).intValue() ));
I believe its not able to find the runtime java classes which has the java.lang.Boolean class. I even tried setting the java.class.path system property with the rt.jar path but still no relief. If you know pls put a comment to this post with solution or if I find any solution, I’ll put it.
====> here’s the solution…
see comments for this post!