简体   繁体   English

Eclipse 2018-09在Windows 10上使用OpenJDK 11

[英]Eclipse 2018-09 with OpenJDK 11 on Windows 10

I just installed the OpenJDK version of the JDK 11 General-Availability Release on 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上安装了OpenJDK版本的JDK 11通用可用性版本 。我尝试在刚刚发布的Eclipse 2018-09(4.9.0)中将其作为JRE安装,并在Eclipse对话框中显示一条消息:

You selected a JRE that this version of Eclipse JDT does not yet support fully. 您选择了此版本的Eclipse JDT尚未完全支持的JRE。 Some of the features may not work as expected. 某些功能可能无法正常工作。

What is the problem? 问题是什么?

  • Does Eclipse 2018-09 not fully support JDK 11? Eclipse 2018-09不完全支持JDK 11吗?
  • Or is it that Eclipse doesn't fully support OpenJDK 11 but supports the Oracle JDK 11? 或者是Eclipse不完全支持OpenJDK 11但是支持Oracle JDK 11?
  • What "features" specifically can I expect to "not work as expected"? 特别是“功能”可以指望“不按预期工作”?

Update: From an Internet search, I found some code that 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. 更新:从Internet搜索,我发现一些代码似乎表明Eclipse有一个已知Java版本的内部列表,如果新的JDK版本的版本高于已知的Java版本,它会给出上述消息。 (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?? Eclipse发布了一个新的2018-09版本,就在JDK 11发布前几天,没有更新其已知Java版本列表以包含Java 11?

Maybe someone has a more authoritative answer. 也许某人有更权威的答案。

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的方式相同(OpenJ9等其他JDK也可以使用)

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. 如果不支持新的JDK版本,则无法使用其新的语言功能,并且由于类格式更改,您可能无法将其全部用于开发。 Launching is likely to work. 启动可能会起作用。

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

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