简体   繁体   English

在TALEND Open Studio中导入可执行JAR-与par运行

[英]Import Executable JAR in TALEND Open Studio- Run with par

I'm trying to import an Executable JAR into Talend project. 我正在尝试将可执行JAR导入Talend项目。 This Executable JAR needs 1 parameter to run:my goal is to call this via tJava or tJavaFlex by passing this param. 可执行JAR需要1个参数才能运行:我的目标是通过传递此参数来通过tJava或tJavaFlex调用此参数。 Is there any way to do this? 有什么办法吗? Already tried to use tLoadLibrary, also to create a Routine without success. 已经尝试使用tLoadLibrary来创建例程,但没有成功。

  1. Create a routine in the code section. 在代码部分中创建一个例程。 Save it. 保存。
  2. Right click on the routine to edit the routine libraries. 右键单击例程以编辑例程库。 Locate and add your jar. 找到并添加您的罐子。
  3. Edit the dependecies of your job and add the created routine. 编辑工作的依存关系,并添加创建的例程。
  4. Add the required import in a tJava component. 在tJava组件中添加所需的导入。
  5. You should be able to use the library in the tJava from now 您现在应该可以在tJava中使用该库

That's the way I managed to use an external jar. 这就是我设法使用外部jar的方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM