Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Use external jar in a job

Hi,
I would like to run an external jar from a tSystem component (java -jar test.jar)
I tried to create a routine and add the jar as dependency (Add routine libraries). But when I publish the job, the jar will be moved into a folder under /.../TalendJobServersFiles/cache/lib/ and I don't know the path to be able to run the job.
Is there a posibility to have test.jar file in the job deployment folder (under /.../TalendJobServersFiles/repository/)?
Should I add the dependency in other way?
Thank you
Labels (3)
4 Replies
Anonymous
Not applicable
Author

Hi fata_n_rosu,
Have you checked TalendHelpCenter:tLibraryLoad to load external jars?
Using tLibraryload component to load the jar file at the begininig of job. for example:
tLibraryLoad
   |
tJava(on tJava, use the external API)


Best regards
Sabrina
Anonymous
Not applicable
Author

And if I don't want to use the external API but the jar file itself?
Where tLoadLibrary will store the jar file?
Anonymous
Not applicable
Author

Hi,
And if I don't want to use the external API but the jar file itself?
Where tLoadLibrary will store the jar file?

Your jar file disapper after it is loaded into job?
Best regards
Sabrina
Anonymous
Not applicable
Author

When I publish the job to a remote job server the jar is copied into into a folder under /.../TalendJobServersFiles/cache/lib. And the folder name is autogenerated. Which is the best way to use this jar into a tSystem component?