简体   繁体   English

Eclipse 4.14.0 无法为 Wildfly 14 的服务器运行时环境设置正确的执行环境

[英]Eclipse 4.14.0 cannot set correct execution environment for the Server Runtime Environment for Wildfly 14

I'm trying to move my projects from eclipse 4.9.0 to 4.14.0 and I am experiencing problems when creating the Server Runtime Environment for Wildfly 14.0.1.我正在尝试将我的项目从 eclipse 4.9.0 移至 4.14.0,但在为 Wildfly 14.0.1 创建服务器运行时环境时遇到问题。 When I try to create the runtime environment, I cannot set the correct Execution environment because only JavaSE-1.8 is offered in the drop down menu.当我尝试创建运行时环境时,我无法设置正确的执行环境,因为下拉菜单中只提供了 JavaSE-1.8。 It should be possible to select JavaSE-1.11应该可以选择 JavaSE-1.11

eclipse 4.14.0日食 4.14.0

In eclipse 4.9.0 I can choose among all the java environments I have installed在 eclipse 4.9.0 中,我可以在我安装的所有 java 环境中进行选择

eclipse 4.9.0日食 4.9.0

I cannot see what is the problem.我看不出有什么问题。 I'm running eclipse on Win 10 64-bit and I have jdk1.8.0_92, jdk-11.0.1 and jre1.8.0_231 installed.我在 Win 10 64 位上运行 eclipse 并且我安装了 jdk1.8.0_92、jdk-11.0.1 和 jre1.8.0_231。 I have also tried to install it on an fresh win 10 computer with only jdk-11.0.1 installed, but the problem remained.我还尝试将它安装在仅安装了 jdk-11.0.1 的全新 win 10 计算机上,但问题仍然存在。 What am I missing here?我在这里缺少什么?

In JVM 9 there ware essential changes like module system.在 JVM 9 中,有一些基本的变化,比如模块系统。 One of consequences is for instance this bug in WildFly 14 .后果之一是例如WildFly 14 中的这个错误。 I suppose RedHat wanted to help developers and displays in the newer Eclipse plugin only Java versions under witch WildFly 14 runs flawless.我想 RedHat 想帮助开发人员并在较新的 Eclipse 插件中仅显示在女巫 WildFly 14 下运行完美的 Java 版本。

The first version of WildFly that officially works well with new module system is WildFly 15 .正式与新模块系统配合使用的第一个 WildFly 版本是WildFly 15 That's why when you configure WildFly 15, also Eclipse 4.14 will show you not only Java 8, but also higher JREs if you have configured them in Eclipse, eg JavaSE-11 or JavaSE-13.这就是为什么当您配置 WildFly 15 时,Eclipse 4.14 不仅会显示 Java 8,还会显示更高的 JRE(如果您在 Eclipse 中配置了它们,例如 JavaSE-11 或 JavaSE-13)。

If you want to force WildFly 14 to run under Java 11, you can configure Java 11 to pretend to be Java 8: Windows --> Preferences --> Installed JREs --> Execution Environments --> select JavaSE-8 in the left pane and select JRE 11 in right pane.如果要强制 WildFly 14 在 Java 11 下运行,可以配置 Java 11 伪装成 Java 8:Windows --> Preferences --> Installed JREs --> Execution Environments --> 选择左侧的 JavaSE-8窗格并在右侧窗格中选择 JRE 11。

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

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