Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add third party libraries to Talend project?

Tags:

java

etl

talend

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?

like image 842
RP- Avatar asked Jul 02 '12 09:07

RP-


People also ask

How do I add a library to Talend?

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.

How do I import a jar into Talend?

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.

How do I install missing jars in Talend?

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).


1 Answers

There are two ways to add additional libraries.

  1. Window -> Preferences -> Java -> Build Path -> User Libraries This will include jar files for all the project jobs.

  2. 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.

like image 151
sdragnev Avatar answered Sep 26 '22 00:09

sdragnev