在Java 10的RCP应用程序中找不到主机插件JavaSE [英] Host plug-in JavaSE has not been found in RCP application with Java 10
问题描述
我将RCP应用程序从Eclipse Oxygen移到了Photon,也从Java 8移到了Java 10.
I moved my RCP application from Eclipse Oxygen to Photon, and also from Java 8 to Java 10.
如果我从Eclipse启动代码,则代码将编译并且应用程序可以正常运行.但是,当我尝试构建应用程序时,出现错误:
The code compiles and the application works fine if I start it from Eclipse. However, when I try to build my application, I get an error:
plug-in JavaSE_0.0.0 has not been found
Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-10
Host plug-in JavaSE_0.0.0 has not been found.
我在Google上找不到任何有用的解决方案.也许有些人可以帮助我.
I can't find any useful solution on Google. Maybe some of you can help me.
我的清单文件包含以下标头:
My manifest file contains this header:
Bundle-RequiredExecutionEnvironment: JavaSE-10
推荐答案
这似乎是Eclipse错误. Eclipse似乎无法正确处理JavaSE-10.
This seems to be an Eclipse bug. Eclipse seems not to able to deal with JavaSE-10 properly.
目前最简单的解决方案是使用Bundle-RequiredExecutionEnvironment: JavaSE-9
而不是JavaSE-10,并提出警告,指出该警告与JRE容器不匹配.
The simplest solution at the moment is just to use Bundle-RequiredExecutionEnvironment: JavaSE-9
rather than JavaSE-10 and put up with the warning that this doesn't match the JRE container.
这篇关于在Java 10的RCP应用程序中找不到主机插件JavaSE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!