2001 JI Open Discussion Posted August 14, 2006 Share Posted August 14, 2006 By: Dejan - dnikolov java.lang.NoClassDefFoundError: dori/jasper/v 2002-05-29 05:50Hi I have compiled report with jasperreports0.3.1 I can view report with taskview.bat. But in my application developed with Jdeveloper I get Error: java.lang.NoClassDefFoundError: dori/jasper/view/JRPageViewer I put jasperreports0.3.1.jar but I get the error. I do this: JasperReport jasper = JasperManager.loadReport(jasperFile); JasperManager.fillReportToFile(jasper,jasperPrint,parameters,conn); JasperViewer.viewReport(jasperPrint); With earlier version I don t have problem. What is the problem? By: Teodor Danciu - teodord RE: java.lang.NoClassDefFoundError: dori/jasper/v 2002-05-29 07:33 Hi, In the new version of the library, the class dori.jasper.view.JRPageViewer is not present anymore. The viewers were entirely rewritten. Make sure you don't have an older version of the library present in the classpath or that you don't use JRPageViewer in your code. The equivalent of this would be JRViewer, which is a component that you can easy integrate in your application. Thank you, Teodor By: Dejan - dnikolov RE: java.lang.NoClassDefFoundError: dori/jasper/v 2002-05-30 03:28I have last version of jasperreports.jar. I success to load jasper file compiled with jasperreports0.3.1.jar If i have older version of jasperreports in my classpath file not be loaded I success to print report but I cant see preview. I don t understand why dori/jasper/view/JRPageViewer is demanded ? This is happened in Jdeveloper not in development of report When I build report I don t have problem In Jdeveloper I use the same jar file. 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