javajasper-reportsjaspersoft-studio

Cannot use my Java classes working with Jasper Reports: ClassNotFoundException


I have installed JasperReports Studio 6.17 in order to generate reports with Jasper Reports. Everything is ok, i can define my templates (jrxml files), filled them with jdbc or cvs remote data, and export them correctly to several formats.

The problem is when i try to use one my own Java classes such as Scritplett or as functions expressions. There is no way to recognize my classes. ClassNotFoundException is thrown each time.

Build path seems to be ok. All depedencies seems to be correct also, but i am not able to extend the functionality interacting with my Java classes. Any idea? Thanks in advance.

pd: I am not generating reports on the fly, just from the template, declaratively.

enter image description here


Solution

  • After asking to the Jasper Community, they have given me a solution.

    Its a bug in the 6.17 version. In order to solved it, just add an extra jar to the plugin installation folder, relaunch Jasper with -clean option and done. Now I can refer and use my own classes within the report.

    Details here: https://community.jaspersoft.com/jaspersoft-studio/issues/13616#comment-873711

    Also told me that a new release is comming and will fix this issue.