Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Could not find or load main class (DB2)

Hi,

 

I'm facing issues while running a talend job that involves a DB2 connection.

When I test the connection, it gets connected successfully but when I place the dbinput/output component on a job, it throws me an error 

 

Error: Could not find or load main class chetna01.testjob_0_1.Testjob.

 

I do have all the 2 db2 jar files present. The 1 jar and 2 license files.

 

Had it been the jar issues, even the db2 connection shouldn't have been successful I suppose.

Can someone help???

 

 

Thanks.

Labels (2)
6 Replies
Anonymous
Not applicable
Author

Hi
Can you please provide the following information? It would help us to more easily evaluate your issue:
- Product and Version which you used (for example, Talend Data Fabric 7.3.1)
- Operating System, for example, Windows Server 2008 R2 SP1 (64bit)
- Version of Java Platform JDK / JRE in use (for example, ORACLE JDK 1.8.0_161)

Regards
Shong
Anonymous
Not applicable
Author

sure.

talend version : Talend open studio for big data (7.2.1)

IOS Version : 10.14.6 (macOS Mojave)

jdk version : 1.8.0_241

 

manodwhb
Champion II
Champion II

@Chetna_chawla1 , can you the all DB2 jars are installed or not from the Modules and make sure the required jars..

 

Module Location :-Windows>>Show View>>Talend>>Modules

Anonymous
Not applicable
Author

Yes i do have all the jars installed. Please have a look at the screenshot. 

0683p000009M9xE.png

Ganshyam
Creator II
Creator II

Hello,

Its commonly observed while running the designed job , seems to be a bug or anything else never came to know.

but the ways to deal is.

1) Save the job and run the job.

2) Close the job and reopen the job and run the job.

3) If above does not work close the studio and restart the studio.

 

Regards

 

Rakesh_Ranjan
Contributor
Contributor

I am not sure - if the error was a fluke or something else and also if the ways to resolve is Appropriate:

1. Re-Extracted the Talend Executable ZIP. (Risky if you have code in your local and not committed to GIT)

2. Opening the Job that has the Db2 Component provided the Option to Install the 3 Jars.

3. Carefully select the Jars one after another and Download and Install.

4. Build the job and Execute