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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to execute java code with diferent methods

Hello,

 

I would like to know how to execute own code (from an existing class) into Talend. There is any example?

 

On the other hand, how I can take the tFileInput variables as input?


Thanks.

Labels (2)
3 Replies
premchandkar
Contributor
Contributor

Hi ,

We have java components(tJava,tJavaflex) as well as routines concept in talend to implement the custom java code.

 

Thanks,

Premchand

cterenzi
Specialist
Specialist

You can load a Java library as part of your job execution and refer to the library methods in your components.

 

Some components expose variables that you can refer to elsewhere.  Read the documentation for the relevant component to see which variables are available.  If a particular setting isn't exposed by Talend, you can sidestep that by using a global or context variable in the setting.  Global and context variables are visible to all components.

Evandao
Contributor III
Contributor III

Hello,

 

   To execute your own code do it:

1) Transfer your Class code to routines in Repository:0683p000009LtsX.png

 

 2) Use components tJava/tJavaRow to use your own code in Jobs:

0683p000009Ltsh.png0683p000009Ltsm.png

 

0683p000009Ltsr.png

 

Evando