2005 IR Help Posted September 2, 2006 Share Posted September 2, 2006 By: hddm79 - hddm79 JavaBeans DataSource classpath problem 2005-08-04 10:32 When I try to set a JavaBeans datasource with classes that are in another directory than iReportDirectory/classes and test the connection, I get a ClassNotFoundException. Yet, I manage to read attributes from these classes with the report query functionnality. If I move the factory class to iReportDirectory/classes, the test connection then works. Is this behaviour a bug? By: sun - sunitha55 RE: JavaBeans DataSource classpath problem 2005-08-04 12:19 I'm facing the same problem, has anyone created a custom datasource pointing to a different location with classes using iReport? Link to comment Share on other sites More sharing options...
jackkilian Posted August 27, 2007 Share Posted August 27, 2007 Hi, I have the same problem. I searched the iReport forum and find many questions regarding this! Is that an open bug, or what's the problem.To copy always the recent jar's into the ireport/lib directory is tedious. best regardsjk Link to comment Share on other sites More sharing options...
anantagarwal Posted August 30, 2007 Share Posted August 30, 2007 Solution:1. Open iReports2. Go to Option menu3. Choose Classpath4. Set the classpath to the folder where all your classes are there. If this doesnt work...1. Go to Edit menu2. Choose Report Import Directives.3. Set the import pathPost edited by: anantagarwal, at: 2007/08/30 09:51 Link to comment Share on other sites More sharing options...
jiangweijiala Posted August 31, 2007 Share Posted August 31, 2007 I have a question to ask, that is: How to run iReport.exe file in java source code.thanks a lot.:P Link to comment Share on other sites More sharing options...
jackkilian Posted August 31, 2007 Share Posted August 31, 2007 I hope I understand the question, try this...: Code:try {// Execute a commandString[] commands = new String[]{"<your path>/iReport.exe"};Process child = Runtime.getRuntime().exec(commands);} catch (IOException e) {} Post edited by: jackkilian, at: 2007/08/31 11:59Post edited by: jackkilian, at: 2007/08/31 12:00 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