How to add third party libraries (jar files) to a Talend project ?
One more question is, Each Talend component
uses LogFactory
, but in my case it is throwing
java.lang.NoClassDefFoundError: org.apache.commons.logging.LogFactory
at ...
with tSetGlobalVar
component, how can I make use of existing logging library to get rid of this exception?
We can add Modules view by going to Window -> Show view -> Talend -> Modules . From the Modules section we can manage all the external libraries. Show activity on this post. Window -> Preferences -> Java -> Build Path -> User Libraries This will include jar files for all the project jobs.
jar. Check maven repo installed : Windows > Preferences > Maven > User Settings > Local Repository and if maven is installed in your system \Maven\apache-maven-3.0. 3\conf\setting. xml Dir Path all the library download here.
Some jars are not available on the Talend Website, you need to download them from external website on the internet and then install them manually to studio. Click the (If the Modules view is not shown under your design workspace, go to Window > Show View... > Talend and then select Modules from the list).
There are two ways to add additional libraries.
Window -> Preferences -> Java -> Build Path -> User Libraries This will include jar files for all the project jobs.
Use the tLibraryLoad component to load a lib file in a job.
As for your second question, this should work out of the box, but it's possible you somehow have a file missing. In your Talend install path, check the plugins directory. The apache logging jar file should be there. In my case: org.apache.commons.logging_1.1.1.v201005080502.jar
If it's missing, then I'd suggest reinstalling Talend (it shouldn't be missing). If it's there, but you're still getting the error, try including it explicitly in the user libraries as described above.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With