Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Wawee
Contributor

Talend Job JAR Files Location

Talend Cloud Real-Time Big Data Platform V7.3.1

Questions:

1) How to identify the directory/location of the JAR files that the Talend job is looking into?

2) How to edit or force Talend job to point to the JAR file location without using tLibraryLoad component?

 

Note: Frequent issue of Java error, NoClassDefFoundError, even though the JAR files/modules have already been installed and/or added to the routine library of the code and the Talend job has been setup with the routine dependency. Needed JAR files are also existing in the following directory:

<InstalledTalendDirectory>\configuration\.m2\repository

 

Example:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/logging/log4j/LogManager

 

JAR file exist in

<InstalledTalendDirectory>\configuration\.m2\repository\org\apache\logging\log4j\log4j-api\2.12.1\log4j-api-2.12.1.jar

 

Same JAR file added in the routine library of the code.

Labels (5)
8 Replies
gjeremy1617088143

HI, go to window --> show view -->Java --> Package Explorer:

then go to (your_Project_name) go to Maven Dependencies : you will see the path of all the jar.

Send me Love and Kudos

gjeremy1617088143

you can right click on the jar select properties and select the path you want to use

Wawee
Contributor
Author

Thanks for your reply; but there is no Maven Dependencies under the Project name like in the following:

0695b00000Eak76AAB.png

gjeremy1617088143

do you have a folder like (your project name)_BEANS Just after (your project name) folder ?

Wawee
Contributor
Author

Yes; I found the Maven Dependencies there. Thanks; I'll check it.

Wawee
Contributor
Author

Talend can't still locate the classpath in the jar file even after explicitly specifying the jar file location.

gjeremy1617088143

Have you try to restart Talend?

Wawee
Contributor
Author

Yes. I have restarted Talend and also tried the following:

  1. Re-ordered build path to move Maven Dependencies at the top.
  2. Re-extracted/Re-installed Talend.