lamontj Posted February 15, 2008 Share Posted February 15, 2008 I may be missing something very obvious, but I am helplessly stuck trying to add a JavaBeans set data source in iReport. In iReport, I go to the Data menu > Connections/Data Source. I click "New" and pick a JavaBeans set data source. The default classpath (it.businesslogic.ireport.connection.SampleJRDataSourceFactory) test fine, but when I change it to anything else, I get a ClassNotFoundError. I imagine it has to do with where I'm saving my Java files. I've read through the documentation and done some searching but I can't seem to find exactly where I'm supposed to save the files, or which files I'm supposed to save (.java, .class, .jar or something else). So far I've tried saving the files in many different places, and have been sure to include the whole class path (pacakges and all) but nothing has worked. So my questions are, where am I supposed to save the Java files within iReport, what files am I supposed to save (.java, .class, .jar etc), and, if I am supposed to make a .jar file, do I include all my classes in one .jar package, or should each class be in a separate .jar file? Many thanks :) Link to comment Share on other sites More sharing options...
Chobicus Posted February 29, 2008 Share Posted February 29, 2008 I am having the same problems.I managed to make some progress when placing .class files in root directory of iReport.I put bean and factory in root.Hope I helped a little. Link to comment Share on other sites More sharing options...
mesak82 Posted April 8, 2008 Share Posted April 8, 2008 You need to add your jar file to iReport classpath. To do that, go to Options->Classpath. 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