codyjasperForge Posted July 18, 2007 Share Posted July 18, 2007 Hey all, I know this is the wrong forum for this post, however, I figured it increases the odds of someone actually responding... I have just downloaded iReport 2.0. I have it running from jre 1.5. I am able to open previously saved reports, but they will not compile. My error message is this: net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: error: error reading .libaxiom-api-1.0.jar; error in opening zip fileNote: D:JasperReportsver1.3.3reportsreport1.java uses unchecked or unsafe operations.Note: Recompile with -Xlint:unchecked for details. 1 error Am I missing something? I have my classpath variable defined correctly, the installation of iReport 2.0 is in the same directory as my previous version. ANY suggestions would be more than appreciated. thx. Link to comment Share on other sites More sharing options...
Gustaf Posted July 18, 2007 Share Posted July 18, 2007 I'm very sure it's a Java version issue, as far as I know when the compiler tells you to compile with Xlint flag it's because you are using a deprecated API. So if I am right, then somewhere you probably have to set that flag xlint:unchecked) in order to see what the error is. Link to comment Share on other sites More sharing options...
Gustaf Posted July 18, 2007 Share Posted July 18, 2007 Strange again because my iReport is using java 1.6. Also did you check out options -> Compatibility ?It looks like you can set the Jasper Reports compatibility there. Link to comment Share on other sites More sharing options...
szaharia Posted July 18, 2007 Share Posted July 18, 2007 Hi, The actual error message says "error reading .libaxiom-api-1.0.jar; error in opening zip file".Apparently, the most probable error cause is that libaxiom-api-1.0.jar is corrupted, or hasn't an appropriate file extension, or something is certainly wrong with this jar. You'll have to find out what.The other message part, telling about "unchecked... etc, etc" represents just a warning, and has no compiling implications. hth,sanda PS: That libaxiom-api-1.0.jar seems not to be directly used by iReport, I think it's one of jars you imported in your application?Post edited by: shertage, at: 2007/07/18 10:16 Link to comment Share on other sites More sharing options...
codyjasperForge Posted July 18, 2007 Author Share Posted July 18, 2007 Yes Shertage, axim-api-1.0.jar is packaged with the application. I have 2 previous versions of iReport installed on my machine(1.3.2, 1.3.3) Each of which is using java 1.5... I will replace the current axim-api-1.0.jar with a previously installed version and see what my results are... Thanks for the replies... Link to comment Share on other sites More sharing options...
szaharia Posted July 18, 2007 Share Posted July 18, 2007 :laugh: So, axim-api-1.0.jar was the real name... Sorry about my very special jar name's interpretation (those all damn backslashes!!).You see, it might be just a spelling error in your classpath entries too, because, the below error message was naming the jar axiom-api-1.0.jar, and not axim.Just an idea. sanda Link to comment Share on other sites More sharing options...
codyjasperForge Posted July 18, 2007 Author Share Posted July 18, 2007 Sorry, that just my typo mistake :pinch: Link to comment Share on other sites More sharing options...
codyjasperForge Posted July 18, 2007 Author Share Posted July 18, 2007 I replaced the .jar (axiom-api-1.0.jar) but still get the error. Any other ideas..? Link to comment Share on other sites More sharing options...
szaharia Posted July 18, 2007 Share Posted July 18, 2007 There might be another clue.What jdk 1.5 version are you using? Did you switched recently to 1.5 environment?Maybe it's a possibility: try to exclude from your classpath anything but .zip or .jar files, and compile your sample again. Regards,sanda 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