Custom Jar file on Jasper Server

yura picture yura · Oct 9, 2012 · Viewed 7.9k times · Source

I wrote some Java class, created jar file. I want to add it to JasperReports Server. When I determine the path to my jar file, using Tools -> Preferences -> Classpath menu in my iReport, it works correctly. But it doesn't work, when I take access to JR Server from another host.

What I must to do, to make this jar file available on this JR Server, from anywhere?

Answer

Alex Chevelev picture Alex Chevelev · Jun 2, 2013

Option 1 - If you want to use your Jar in a several reports.

You should "Add Jar" (as it called in iReport repository manager) to some folder in the Jasper Server folder tree. Then "Add reference" to this resource in Resources section of you specific report.

Option2 - You need a jar in a specifc report.

Use "Add Jar" option in a resources section of specific report.

Worked perfectly on JasperServer 4.7