如何在Talend项目中添加第三方库?

时间:2023-02-05 11:27:26

How to add third party libraries (jar files) to a Talend project ?

如何将第三方库(jar文件)添加到一个Talend项目中?

One more question is, Each Talend component uses LogFactory, but in my case it is throwing

还有一个问题,每个Talend组件都使用LogFactory,但在我的例子中是抛出。

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?

对于tSetGlobalVar组件,我如何使用现有的日志库来消除这个异常?

3 个解决方案

#1


4  

You can import the external jars using tLibraryLoad component or Editing Routine Libraries.

可以使用tLibraryLoad组件或编辑例程库导入外部jar。

For more information visit

访问的更多信息

http://vikramtakkar.blogspot.in/2013/03/importing-external-jar-or-library-files.html

http://vikramtakkar.blogspot.in/2013/03/importing-external-jar-or-library-files.html

#2


10  

Just to benefit others, with recent release of Talend, they have removed the User libraries.

为了让其他人受益,最近发布了Talend,他们删除了用户库。

We need to use the Modules to see, download or install new libraries. We can add Modules view by going to Window -> Show view -> Talend -> Modules. From the Modules section we can manage all the external libraries.

我们需要使用这些模块来查看、下载或安装新的库。我们可以通过窗口->显示视图-> Talend ->模块添加模块视图。从模块部分,我们可以管理所有的外部库。

如何在Talend项目中添加第三方库?

#3


5  

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.

    窗口->首选项-> Java ->构建路径->用户库这将包括所有项目任务的jar文件。

  2. Use the tLibraryLoad component to load a lib file in a job.

    使用tLibraryLoad组件在作业中加载lib文件。

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

至于你的第二个问题,这应该是开箱即用的,但是你可能丢失了一个文件。在您的Talend安装路径中,检查插件目录。apache日志jar文件应该在那里。在我的例子中: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.

如果它丢失了,那么我建议重新安装Talend(它不应该丢失)。如果它在那里,但是您仍然得到错误,请尝试像上面描述的那样在用户库中显式地包含它。

#1


4  

You can import the external jars using tLibraryLoad component or Editing Routine Libraries.

可以使用tLibraryLoad组件或编辑例程库导入外部jar。

For more information visit

访问的更多信息

http://vikramtakkar.blogspot.in/2013/03/importing-external-jar-or-library-files.html

http://vikramtakkar.blogspot.in/2013/03/importing-external-jar-or-library-files.html

#2


10  

Just to benefit others, with recent release of Talend, they have removed the User libraries.

为了让其他人受益,最近发布了Talend,他们删除了用户库。

We need to use the Modules to see, download or install new libraries. We can add Modules view by going to Window -> Show view -> Talend -> Modules. From the Modules section we can manage all the external libraries.

我们需要使用这些模块来查看、下载或安装新的库。我们可以通过窗口->显示视图-> Talend ->模块添加模块视图。从模块部分,我们可以管理所有的外部库。

如何在Talend项目中添加第三方库?

#3


5  

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.

    窗口->首选项-> Java ->构建路径->用户库这将包括所有项目任务的jar文件。

  2. Use the tLibraryLoad component to load a lib file in a job.

    使用tLibraryLoad组件在作业中加载lib文件。

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

至于你的第二个问题,这应该是开箱即用的,但是你可能丢失了一个文件。在您的Talend安装路径中,检查插件目录。apache日志jar文件应该在那里。在我的例子中: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.

如果它丢失了,那么我建议重新安装Talend(它不应该丢失)。如果它在那里,但是您仍然得到错误,请尝试像上面描述的那样在用户库中显式地包含它。