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

JRDataSourceProvider from my NetBeans class?


edbeaty

Recommended Posts

Hello, all. I have installed the IReports plugin for NetBeans 6.1, and am trying to create a new Report using a JRDataSourceProvider, with no luck.

 

I've copied over the PersonBeansDataSource http://jsourcery.com/api/sourceforge/ireport/1.2.8/it/businesslogic/ireport/examples/PersonBeansDataSource.source.html#jj1537777112

and all the associated Beans (PersonBean, etc.) to my local NetBeans project. The class compiles correctly, so it must know where the JasperReports libraries are.

 

When I go

New > Other > Report > Report

Next

Next (use the default file name)

select New (datasource)

select JRDataSourceProvider and click Next

name = "foo"

JasperReports DataSourceProvider class = PersonBeansDataSource

Click Test

 

ClassNotFoundError! Msg PersonBeansDataSource Possible not found class PersonBeansDataSource check your classpath!

 

...okay. I'll try full.path.to.the.class.in.my.project.PersonBeansDataSourceProvider.

 

I get a ClassNotFoundError! Msg: full.path.to....etc...PersonBeansDataSource.

 

If I cancel, and use the default JRDataSourceProvider class, com.jaspersoft.ireport.examples.PersonBeansDataSource and click Test, I get Connection test successful!.

 

Is there any way to get the IReport plugin to see a class in my file as a JRDataSourceProvider?

 

Thanks for any help.

-Ed

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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...