Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
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
you can right click on the jar select properties and select the path you want to use
Thanks for your reply; but there is no Maven Dependencies under the Project name like in the following:
do you have a folder like (your project name)_BEANS Just after (your project name) folder ?
Yes; I found the Maven Dependencies there. Thanks; I'll check it.
Talend can't still locate the classpath in the jar file even after explicitly specifying the jar file location.
Have you try to restart Talend?
Yes. I have restarted Talend and also tried the following: