call third party jar in Child Job

Highlighted
Five Stars

call third party jar in Child Job

Hi,

 

I'm using third party jar in my job using tLibrary component.

 

Two issues:

 

1) After loading jar using tLibrary component, I'm using one of the class's method in my next tjava component. But its showing that it doesnt exists in imports ( Showing error in imports ). WHY ? Am I doing something wrong. ?

 

2) Can I call jar's method in subjob as well once jar is loaded in main job using tLibrary component ? In my case its showing doesnt's exists ..! Smiley Sad 

 

Please Advice..!

Thanks

Highlighted
Moderator

Re: call third party jar in Child Job

Hello,

Could you please give us more information about your code in tJava? Please make sure you import the class before using it(advanced setting tab of tJava) or you can use the class with full package path.

 Screenshots of your tJava component setting will be preferred. 

Best regards

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.

2019 GARTNER 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

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

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