Jump to content
We've recently updated our Privacy Statement, available here ×

JavaBeans DataSource classpath problem


2005 IR Help

Recommended Posts

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

  • 11 months later...
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Solution:

1. Open iReports

2. Go to Option menu

3. Choose Classpath

4. Set the classpath to the folder where all your classes are there.

 

If this doesnt work...

1. Go to Edit menu

2. Choose Report Import Directives.

3. Set the import path

Post edited by: anantagarwal, at: 2007/08/30 09:51

Link to comment
Share on other sites

I hope I understand the question, try this...:

 

Code:


try {
// Execute a command
String[] 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:59

Post edited by: jackkilian, at: 2007/08/31 12:00

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...