2005 IR Help Posted August 26, 2006 Share Posted August 26, 2006 By: John Augusto Charnet - jcharnet JasperCompileManager error 2004-06-10 07:57 I'm trying to compile a report that I've generated through the API with the method JasperCompileManager.compileReportToFile(jd,"e:\java\reports\jasperreports\testJasper.jasper"); When I call this method I get the following error: C:jdeveloper9034jdevbinTeste.java:24: cannot access java.lang.Object bad class file: C:j2sdk1.4.2_03jrelibrt.jar(java/lang/Object.class) class file has wrong version 48.0, should be 47.0 Please remove or make sure it appears in the correct subdirectory of the classpath. private JRFillParameter parameter_REPORT_CONNECTION = null; ^ Any ideas ? Thanks again for all the great work ... John By: John Augusto Charnet - jcharnet RE: JasperCompileManager error 2004-06-10 12:33 I changed my jdk to 1.3 and it worked. Does jasperreports have some kind of incompatibility with jdk 1.4.2_03 ? thanks . Sincerely, John By: Chuck Deal - cdeal RE: JasperCompileManager error 2004-06-10 12:43 You have the wrong version of tools.jar in your classpath. Since it looks like you are trying to use the JDK 1.4.2, you probably have a JDK 1.3.x tools.jar in your classpath. 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