Talend tJava customCode "cannot be resolved to a type" 与 tLibraryLoad
Talend tJava customCode "cannot be resolved to a type" with tLibraryLoad
我正在尝试使用我自己的 jar 文件跟随 this tutorial:
如果这在某种程度上很重要,则 TSVTransposer 是主要的。
我使用 eclipse 导出器将这个包导出为 jar 文件。
这是我在 Talend 中的工作:
这是我在 tJava 中的代码:
InputFile 是我自己的 Java class.
这是我的 tLibraryLoad:
当我尝试 运行 作业时,出现此错误:
好像我的 jar 根本没有被导入。
感谢阅读到这里!
在 tJavaRow 组件的 Advanced settings
中,添加
import my.package.path.to.tsvTranspositer.*;
这将添加到生成的 Java 代码中,并使您的 class 可用于作业。
我正在尝试使用我自己的 jar 文件跟随 this tutorial:
如果这在某种程度上很重要,则 TSVTransposer 是主要的。
我使用 eclipse 导出器将这个包导出为 jar 文件。
这是我在 Talend 中的工作:
这是我在 tJava 中的代码:
InputFile 是我自己的 Java class.
这是我的 tLibraryLoad:
当我尝试 运行 作业时,出现此错误:
好像我的 jar 根本没有被导入。
感谢阅读到这里!
在 tJavaRow 组件的 Advanced settings
中,添加
import my.package.path.to.tsvTranspositer.*;
这将添加到生成的 Java 代码中,并使您的 class 可用于作业。