Creating a library of external jars for use in a user routine or job

Four Stars

Creating a library of external jars for use in a user routine or job

How can we create a user library of all the external jars needed for use in a user routine? I see radio button "Input a library's name" in New Module dialog. But do not know how this library of jars can created, so it can be referenced here.
Thanks
Moderator

Re: Creating a library of external jars for use in a user routine or job

Hi,

There are two ways for you to import the external jar files:
1)Using tLibraryload component to load the jar file at the begininig of job. for example:
tLibraryLoad
   |
tJava(on tJava, use the external API)

2)Creating custom routine, import the external jar file by clicking on the rouinte name and edting the routine libraries, and then call this routine in the job.


Here is the component reference about:TalendHelpCenter:tLibraryLoad


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.
One Star

Re: Creating a library of external jars for use in a user routine or job

Hi,

There are two ways for you to import the external jar files:
1)Using tLibraryload component to load the jar file at the begininig of job. for example:
tLibraryLoad
   |
tJava(on tJava, use the external API)

2)Creating custom routine, import the external jar file by clicking on the rouinte name and edting the routine libraries, and then call this routine in the job.


Here is the component reference about:TalendHelpCenter:tLibraryLoad


Best regards


Sabrina



Hi Sabrina,
And what about Java Bulid Path? Can't import custom library this way?
I need to use my custom library directly in tJava and tMaps components. There's no way to do that?
Moderator

Re: Creating a library of external jars for use in a user routine or job

Hi JSeverino,
For your job requirement, have you tried this solution to import your custom library?
tLibraryLoad
   |
tJava(on tJava, use the external API)
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.
One Star

Re: Creating a library of external jars for use in a user routine or job

Hi Sabrina, 
Yes, and it's work ok with tLibraryLoad, but we don't want to add it in every job.
Java Build Path is not an option?

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