Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse 2018-09 with OpenJDK 11 on Windows 10

Tags:

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:

You selected a JRE that this version of Eclipse JDT does not yet support fully. Some of the features may not work as expected.

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"?

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. (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??

Maybe someone has a more authoritative answer.

like image 468
Garret Wilson Avatar asked Sep 26 '18 14:09

Garret Wilson


People also ask

How do I use OpenJDK 11 in Eclipse?

A Java 11 JRE is recognized by Eclipse for launching. It can be added from the Window > Preferences > Java > Installed JREs > Add... page. It can also be added from the Package Explorer using the project's context menu.

Which version of Eclipse is compatible with JDK 11?

Eclipse 4.17 (2020-09) A Java 11 or newer JRE/JDK is required, LTS release are preferred to run all Eclipse 2020-09 packages based on Eclipse 4.17, as well as the Installer.

Does Eclipse work with OpenJDK?

Our community is committed to supporting JDK levels as long as they are supported at the OpenJDK open source project with a significant user base. Currently, Eclipse OpenJ9 produces a new release every quarter that can build against all JDK levels currently supported by the OpenJDK community.


1 Answers

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:

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

OracleJDK and OpenJDK are supported in the same way (Other JDKs like OpenJ9 should work, too)

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.

like image 82
Till Brychcy Avatar answered Sep 30 '22 19:09

Till Brychcy