divsen Posted August 26, 2006 Share Posted August 26, 2006 Hi Iam new to Jasper reports..Iam trying to fill my report with data..but it keeps giving me the following error.. java.lang.NoClassDefFoundError: net/sf/jasperreports/engine/fill/JRHorizontalFiller at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601) but the class is present This a code excerpt:<code> Map params = new HashMap();params.put("Report_Name","Access Report"); String inputFile ="C:\Jasper\Access.jrxml"; JasperReport jasperReport = JasperManager.compileReport(inputFile); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, params, new NDataSource() ); </code> NDataSource is my dataSource...it Implements JRDataSource The input file is in c:->jasper Folder Iam using MyEclipse Version: 3.1.2 and Jboss 4.0 I have attached my Jasper Report [file name=Access.jrxml size=3742]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/Access.jrxml[/file]Post edited by: divsen, at: 2006/08/25 23:31 Link to comment Share on other sites More sharing options...
lucianc Posted August 28, 2006 Share Posted August 28, 2006 Do you have the Commons Javaflow jar on your classpath? HTH,Lucian Link to comment Share on other sites More sharing options...
divsen Posted August 28, 2006 Author Share Posted August 28, 2006 i added the jar file and it is working.. Thank you very much.. 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