hpopiolkiewicz
hpopiolkiewicz

Reputation: 3548

Target is not a JDK root. System library was not found. Eclipse Oxygen 4.7 + Java9 error

I'm trying to test JDK9 (jdk-9-ea+147 version) with Eclipse Oxygen IDE.

I've installed jdk along with jre. From Eclipse Market Place I've installed Java9 Beta extension:

enter image description here

The problem is, when I'm trying to add new installed jre from Eclipse I get following error:

enter image description here

Interesting thing is that this error doesn't occur with installations of previous JDK versions:

enter image description here

Does anyone encounter simillar problem with Eclipse Oxygen? Any feedback is appreciated.

Upvotes: 22

Views: 93968

Answers (8)

Norbert Lamprecht
Norbert Lamprecht

Reputation: 1

stop eclise - start eclise than to installte jre and add is a permanet problem by me

Upvotes: 0

nams
nams

Reputation: 1

I was facing the same problem for the latest JDK."jdk-18_windows-x64_bin.exe" However it is resolved by installing this eclipse https://www.eclipse.org/downloads/download.php?file=/oomph/epp/oxygen/R/eclipse-inst-win64.exe.

Give it a try, I hope this will work for you too! Cheers!

Upvotes: 0

Bharathiraja
Bharathiraja

Reputation: 812

I'm also faced this issue "Target is not a JDK root. System Library was not found" for Java 11 and I have done some workaround and got to know, this is related to the version we are using either eclipse or sprint tool suite. So i figured out the correct version and posted below.

Java 9 Supports:

  • Spring Tool Suite:3.9.0
  • Eclipse:Oxygen (4.7)

Java 10 Supports:

  • Spring Tool Suite:3.9.4

  • Eclipse: Oxygen (4.7.3) and Above

Java 11 Supports:

  • Spring Tool Suite: 3.9.7
  • Eclipse: Photon 4.8, 4.10 (officially supports)

Below are references i used:

  1. STS
  2. Eclipse

Click Up Vote if this is useful for you.

Upvotes: 8

Beqir Kuçi
Beqir Kuçi

Reputation: 71

You should use Standard VM not standard 1.1x VM best regards! se pic

Upvotes: 7

rabi
rabi

Reputation: 101

set the path to:: /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

Upvotes: 5

Saheb
Saheb

Reputation: 51

Oxygen does not come with java9 support. You need to install the eclipse Java9 support patch from the market place https://marketplace.eclipse.org/content/java-9-support-beta-oxygen to be able to use Java9 or you can update from "Help" menu bar.

Ref - https://bugs.eclipse.org/bugs/show_bug.cgi?id=509704

Upvotes: 1

skomisa
skomisa

Reputation: 17391

I've just successfully tested JDK9 with Eclipse Oxygen IDE following the approach you detailed.

Here are the details of my installation (under Windows 10):

enter image description here

Upvotes: 13

greg-449
greg-449

Reputation: 111217

This looks like Eclipse bug 494481.

Unfortunately there is currently no fix or workaround listed for the bug.

Upvotes: 4

Related Questions