burferd Posted April 12, 2007 Share Posted April 12, 2007 Using Java Studio Creator, Jasper Reports 1.3.2 I'm trying to write an Excel spread sheet and among my code I have the following: JRXlsExporter exporter = new JRXlsExporter()...exporter.setParameter(JRXlsExporterParameter.IS_DETECT_CELL_TYPE, Boolean.TRUE);... The code compiles OK, but when I try to execute, I get a page error:ExceptionDetails: java.lang.NoSuchFieldError IS_DETECT_CELL_TYPE The parameter is detected with the code completion in the IDE, so it is obviously seen by the IDE. The jasper 1.3.2 jar file is loaded in the war file since I can print PDF versions of my reports. Anyone have a clue as to why I get the NoSuchFieldError?? Is there something else I need to include? Link to comment Share on other sites More sharing options...
lucianc Posted April 12, 2007 Share Posted April 12, 2007 Do you compile your code against JasperReports 1.3.2 as well or do you have another JR version on the compilation classpath? Regards,Lucian Link to comment Share on other sites More sharing options...
burferd Posted April 13, 2007 Author Share Posted April 13, 2007 I used iReport1.3.2 to compile, but I have other versions installed on my computer. Should I uninstall the other versions? What jar files should I be including in my project? Link to comment Share on other sites More sharing options...
lucianc Posted April 13, 2007 Share Posted April 13, 2007 I was referring to your Java source code compilation. If you run your application with JR 1.3.2, I think you need to compile your code against JR >= 1.2.8 to avoid this binary compatibility problem. HTH,Lucian Link to comment Share on other sites More sharing options...
burferd Posted April 15, 2007 Author Share Posted April 15, 2007 Java source is using the following libraries: jasperreports-1.3.2.jarjasperreports-1.3.2-javaflow.jaritext-1.3.1.jarpoi-2.0-final-20040126.jarjfreechart-1.0.0.jarcommons-digester-1.7.jar 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