Java 在 Windows 10 上使用 OpenJDK 11 的 Eclipse 2018-09
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/52520472/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse 2018-09 with OpenJDK 11 on Windows 10
提问by Garret Wilson
I just installed the OpenJDK version of the JDK 11 General-Availability Releaseon Windows 10. I tried to install it as a JRE in the just-released Eclipse 2018-09 (4.9.0), and a message appared in the Eclipse dialog saying:
我刚刚在 Windows 10 上安装了JDK 11 General-Availability Release的 OpenJDK 版本。我尝试将它作为 JRE 安装在刚刚发布的 Eclipse 2018-09 (4.9.0) 中,并且在 Eclipse 对话框中出现一条消息说:
You selected a JRE that this version of Eclipse JDT does not yet support fully. Some of the features may not work as expected.
您选择了此版本的 Eclipse JDT 尚不完全支持的 JRE。某些功能可能无法按预期工作。
What is the problem?
问题是什么?
- Does Eclipse 2018-09 not fully support JDK 11?
- Or is it that Eclipse doesn't fully support OpenJDK 11 but supports the Oracle JDK 11?
- What "features" specifically can I expect to "not work as expected"?
- Eclipse 2018-09 是否不完全支持 JDK 11?
- 还是 Eclipse 不完全支持 OpenJDK 11 但支持 Oracle JDK 11?
- 我可以期望哪些“功能”“无法按预期工作”?
Update: From an Internet search, I found some codethat seems to indicate that Eclipse has an internal list of known Java versions, and it gives the above message if the new JDK version has a higher version than the known Java versions. (That's how I interpret the code.) Really? Eclipse launched a new 2018-09 version, just days before JDK 11 was released, without updating its list of known Java versions to include Java 11??
更新:从 Internet 搜索中,我发现一些代码似乎表明 Eclipse 具有已知 Java 版本的内部列表,如果新 JDK 版本的版本高于已知 Java 版本,它会给出上述消息。(这就是我解释代码的方式。)真的吗?Eclipse 发布了一个新的 2018-09 版本,就在 JDK 11 发布前几天,但没有更新其已知 Java 版本列表以包含 Java 11??
Maybe someone has a more authoritative answer.
也许有人有更权威的答案。
回答by Till Brychcy
Eclipse 2018-09 doesn't support JDK 11 out of the box, but the official plugin for JDK 11 has now been released on the market place:
Eclipse 2018-09 不支持开箱即用的 JDK 11,但 JDK 11 的官方插件现已在市场上发布:
https://marketplace.eclipse.org/content/java-11-support-eclipse-2018-09-49
https://marketplace.eclipse.org/content/java-11-support-eclipse-2018-09-49
Here is the release announcement: https://www.eclipse.org/lists/jdt-dev/msg01049.html
以下是发布公告:https: //www.eclipse.org/lists/jdt-dev/msg01049.html
OracleJDK and OpenJDK are supported in the same way (Other JDKs like OpenJ9 should work, too)
以同样的方式支持 OracleJDK 和 OpenJDK(其他 JDK,如 OpenJ9 也应该可以工作)
If a new JDK release is not supported, you cannot use its new language features and you may not be able to use it all for development because of class format changes. Launching is likely to work.
如果不支持新的 JDK 版本,您将无法使用其新语言特性,并且由于类格式更改,您可能无法将其全部用于开发。启动可能会奏效。
回答by atom88
The update site for the plugin for 2018-09 is here: http://download.eclipse.org/eclipse/updates/4.9-P-builds/P20180926-0920/
2018-09 插件的更新站点在这里:http: //download.eclipse.org/eclipse/updates/4.9-P-builds/P20180926-0920/