java – Talend执行无法生成代码
作者:互联网
我正在尝试从talend(http://www.talendforge.org/tutorials/tutorial.php?language=english&idTuto=1#Action)构建第一个示例作业
当我尝试运行它时,我收到以下错误:
Execution failed : Failed to generate code. [----------
1. ERROR in C:\Talend\workspace\.JETEmitters\src\org\talend\designer\codegen\translators\technical\TSortOutBeginJava.java (at line 1) package org.talend.designer.codegen.translators.technical; ^ The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
----------
2. ERROR in C:\Talend\workspace\.JETEmitters\src\org\talend\designer\codegen\translators\technical\TSortOutBeginJava.java (at line 421) stringBuffer.append(TEXT_1); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
---------- 2 problems (2 errors)]
我已经尝试更改窗口>首选项> talend> java解释器指向jdk安装以及jre7和jre8安装,但都无济于事.
另外,我尝试执行talend的大数据演示提供的示例作业,并收到相同的错误消息
解决方法:
Talend doesn’t currently support Java 8.这是5.4,虽然我必须检查5.5,但我相信情况仍然如此,我认为也可能是5.6的情况.
您不必卸载任何1.8.x JDK,只需确保您的JAVA_HOME和Path系统环境变量指向1.7.x JDK(并且此1.7.x JDK是列表中的第一个).
标签:talend,java,java-8 来源: https://codeday.me/bug/20190825/1715061.html