How to use java classes in Talend?

0 votes
I made the routines for the two classes with me in Talend and then used tjava to call the method but unable to do so..I also tried using tjava for all and did a onSubjob ok on each of the tjava. How can I call my classes in talend and call my methods? I tried making routines of two classes and tried loading the routines but then I am getting this error : Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE
Jun 14, 2018 in Talend by Siddhant
• 120 points
199 views

2 answers to this question.

0 votes

This error indicates that the definition of a class has unexpectedly changed. This can be because of JDK version incompatibility as well. So, you can try upgrading your JDK, and if this doesn't work follow the below steps:

1.) Right-click on the job present in your repository
2.) Then select "setup routines dependencies"
3.) Delete all existing "User Routine dependencies" which are not being used in the current job
4.) Execute the job
This can be because you are missing on some jar. Once you provide the jar, the job executes fine.

answered Jun 20, 2018 by geek.erkami
• 2,320 points
+1 vote

For many data integration requirements, the standard Talend components provide the means to process the data from start to end without needing to use Java code apart from in tMap. 

For more complex requirements, it is often necessary to add additional Java logic to a job, and in other cases, it may be that adding custom Java code will provide a simpler or more elegant or more efficient code than using the standard components.

answered Oct 3, 2018 by daisyridley
• 160 points

edited Oct 3, 2018 by Vardhan
Yup. Perfect.

Related Questions In Talend

0 votes
1 answer

Using Java Classes in Talend

While working with routines, the very 1st ...READ MORE

answered Apr 14, 2018 in Talend by geek.erkami
• 2,320 points
303 views
0 votes
1 answer

How to generate multiple rows from a single row in Talend?

I think using tJavaFlex, tMap and tFlowToIterate ...READ MORE

answered Apr 18, 2018 in Talend by code.reaper12
• 3,450 points
934 views
0 votes
2 answers
0 votes
1 answer

Using tHiveRow to execute multiple Hive queries in Talend

In order to execute multiple queries, you ...READ MORE

answered Apr 14, 2018 in Talend by misc.edu04
• 1,380 points
580 views
0 votes
1 answer

How to load a set of files into database using Talend

Using tFileList component,  you can read all the files present ...READ MORE

answered Apr 16, 2018 in Talend by code.reaper12
• 3,450 points
433 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer