package net.sf.jasperreports.engine does not exist

Five Stars

package net.sf.jasperreports.engine does not exist

Hi to all, I am new in this community.

I'm tring to get a PDF report with talend. I made a simple job that read a csv file and create a pdf report with the tJasperOutput component but I'm having this error:

Exception in component tJasperOutput_3 (XXXXX)
net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
D:\xxxxx\Documents\Lavoro\TalendWorkspace\xxxxx\poms\jobs\process\xxxxx_0.1\src\main\ext-resources\TEST_FATTURATO_1551361337977_934219.java:4: error: package net.sf.jasperreports.engine does not exist
import net.sf.jasperreports.engine.*;

Can someone help me?

I'm using TOS 7.1 and iReport 5.6.

Thank you in advance.


Accepted Solutions
Five Stars

Re: package net.sf.jasperreports.engine does not exist

Hi,
I solved by my selves. I used a different component: tJasperReportExec. In this component there is a litle ambiguity: In the configurazione section of this component I specified the .jasper file in the place where there need the .jrxml file and in the same directory of the .jasper file I placed the .jrxml file and now it is working fine.
Best regards
GiorgioCattura.PNG

View solution in original post


All Replies
Moderator

Re: package net.sf.jasperreports.engine does not exist

Hello,

Have you already added all dependent JAR related to jasper report?

Best regard

Sabrina

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: package net.sf.jasperreports.engine does not exist

Hi, thank you Sabrina for the reply.
I think yes, I added in the classpath a directory that contains this jars:

jasperreports-6.7.0.jar
jasperreports-chart-customizers-6.7.0.jar
jasperreports-chart-themes-6.7.0.jar
jasperreports-custom-visualization-6.7.0.jar
jasperreports-fonts-6.7.0.jar
jasperreports-functions-6.7.0.jar

Five Stars

Re: package net.sf.jasperreports.engine does not exist

Hi,
I solved by my selves. I used a different component: tJasperReportExec. In this component there is a litle ambiguity: In the configurazione section of this component I specified the .jasper file in the place where there need the .jrxml file and in the same directory of the .jasper file I placed the .jrxml file and now it is working fine.
Best regards
GiorgioCattura.PNG

View solution in original post

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog