javaeclipsejvmjava-17eclipse-oxygen

Updating Java version from 8 to 17 on Eclipse 4.7 (Oxygen)


In my previous question I was suggested to update the Java version from 8 to 17 (or later).

I was given a 2017 Eclipse version (Oxygen, 4.7.0) as you can see below:

eclipse_rcp_dev

Currently Eclipse is using JavaSE-1.8 as the JRE System Library as you can see here:

enter image description here

and here:

enter image description here

and here:

enter image description here

So I visited Java SE 17 archive downloads and downloaded Windows x64 Compressed Archive, unzipped the archive and paste the content on my Desktop:

enter image description here

In order to update the JRE I went to Preferences > Installed JREs and tried to Add the newly downloaded JRE as a Standard VM but I get an error:

enter image description here

that is

Target is not a JDK root. System library was not found.

Note that I do not want to locally install a JVM on my computer.

How can I fix the issue?


Solution

  • I had to update the version of Eclipse to the latest version, as suggested in the comment box.