I've installed the JasperReport 4.11 plugin for Netbeans (6.9.1).
I've realized a simple bean like the following:
package jr;
import java.io.Serializable;
public class Person implements Serializable {
private String name;
private String lastname;
public String getLastname() {
return lastname;
}
//all the other setters and getters
}
When i edit the report into the "Report Query" dialog (left click + right click on the background and chose "edit query"), into the panel JavaBean datasource i write the class name:
jr.Person
and I click on "Read attributes"
i get the error:
"Class not found error!!
Controlla il tuo classpath e riprova!"
(the second part is localized in italian... translation: "check your classpath and try again")
It seems like the JasperReports plugin for Netbeans doesn't use the classpath of the project! (I have build the project, of course)
How can i solve this?