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
3,226 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.

Hope this will help!

Join the Talend course today to know more about and become expert.

Thanks.

answered Jun 20, 2018 by geek.erkami
• 2,680 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,680 points
2,736 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,500 points
7,845 views
0 votes
1 answer

In Talend, how to specify multiple conditions as expression

@Palaniswamy, have a look at this discussion ...READ MORE

answered Aug 5, 2019 in Talend by Vardhan
• 13,150 points
7,253 views
0 votes
1 answer

How to loading flat file from configuration in Talend?

Hey, @There, Regarding your query you need to ...READ MORE

answered Jun 4, 2020 in Talend by Gitika
• 65,770 points
2,210 views
0 votes
0 answers

How can I use talend to extract data from Oracle and import the data into a MSSQL database?

We currently have around 100 Oracle tables ...READ MORE

Nov 4, 2020 in Talend by umesh
• 150 points
2,570 views
0 votes
0 answers

how to read .dbf files in talend 2020 ?

hi , i am new in talend ...READ MORE

Dec 2, 2020 in Talend by aminegac
• 570 points
1,830 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,450 points
3,845 views
0 votes
1 answer
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 17, 2018 in Talend by code.reaper12
• 3,500 points
6,180 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP