2005 IR Help Posted September 2, 2006 Share Posted September 2, 2006 By: akmalkhan - akmalkhanClassNotFound : Class path error from iReport2005-11-30 03:14HiWhen i design report using JavaBean ,iReport is not deducting my Bean and says that Bean is not available in classpath. But i included that class into classpath using menu. But still it says error.Pls how to connect my Bean from iReport. Where to set class path.If you have any screen shot or demo , pls send it too.Thanks! Link to comment Share on other sites More sharing options...
veb Posted November 25, 2006 Share Posted November 25, 2006 Hi, I have had the same problem. No ideas found. I tried everything and I found proprietal SOULUTION. Try to copy your project jar file into iReportlib directory. Its look strange but it works!! Link to comment Share on other sites More sharing options...
chungonn Posted November 27, 2006 Share Posted November 27, 2006 I encountered the same problem. After spending many hours looking at the problem, I decide to "fix" my class problem i.e. by removing the "missing" classes from my application. Painful but it works, I didnt want to put my entire project into iReport/lib directory. I believe the problem lies with the implementation of the iReport's classpath's classloader. The "missing" classes are found in a separate classloader rather then the Class that complaints the missing class. Link to comment Share on other sites More sharing options...
sww Posted January 31, 2008 Share Posted January 31, 2008 And STILL this problem persists in iReport 2.0.4!!! I have the same issue - the reports DOES compile, but there is a constant 'problem' being reported. The class IS in the classpath, AND the package is being imported by the report. There is no way that I can put the application in the iReport lib directory - that's NOT a solution. A PROPER fix is LONG overdue, I'd say. Link to comment Share on other sites More sharing options...
schenkjd Posted September 6, 2012 Share Posted September 6, 2012 I see that the previous posts are quite old but in case anyone comes across these like I did...The way to do it now is:Tools-> Options -> Classpath tab. Link to comment Share on other sites More sharing options...
eflores767003 Posted December 20, 2013 Share Posted December 20, 2013 Go to Options, select Classpath tab, include you project jar, and all set. Link to comment Share on other sites More sharing options...
shikharagarwal19 Posted June 15, 2016 Share Posted June 15, 2016 In fact, You are not really need to create a JAR for the same. You can directely map your classes from the project folder. I am going to post my way I used to get rid of it. 1. go to "Tools->Options->iReport" and then select the CLASSPATH tab2. click on 'Add Folder' the select the directory contains classes (eg:- "ProjectPathtargetclasses") 3. Click OK, You are done with class path now.4. click on add DataSource Button from the top header buttons. A window will gets open.5. Click on "New" on the right PAN of the last window.6. Choose JavaBeans set datasource, click next.7. enter any name you want to give to your datasource.8. In the factory class option enter the fully qualified class path of your bean (eg: com.jasper.bean.BeanClass) 9. Select the radio button (Either a Collection/ ArrayList depending on your bean retreiving method)10. In The static method area give the name of the retreivaial method (eg:- listAllBean)11. click on 'Test'12. If you are succeed click on SAVE.Hope it helps. Enjoy. Link to comment Share on other sites More sharing options...
arun.rout31 Posted January 4, 2022 Share Posted January 4, 2022 It look like you are trying to use external beanFor that step -1: create a jar for that class step-2: add to class path of that jarstep -3: Then while adding class file to jar import it by selecting the complete properties and change language from java to groovy.Hope this helps 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