Community
Participate
Working Groups
Hello. I've tried using both Eclipse Neon RC2[1] and Eclipse Mars.2 + the 4.5-P update site for Java 9 support[2], and neither is willing to use either my distro's Java9 (9b116) nor the most recent available from Oracle's site (9b119). In all cases, from Preferences->Java->Installed JREs->Add, I pick the target JDK as JRE home, and get this error condition in the "JRE Definition" window: "Target is not a JDK root. System library was not found." I'd really like to start working with Java 9, & hope this can get resolved. Thanks. I did a quick look at Eclipse running under strace last night and didn't see any obvious files it was looking for. I dno't know what the "system library" that can't be found is, but it didn't- to my novice eyes- seem to be a file inside the JDK directory. [1] http://marketplace.eclipse.org/content/java-9-support-beta-neon [2] https://www.eclipse.org/community/eclipse_newsletter/2015/june/article4.php
We are aware of this issue and it's been noted elsewhere that the JDK/JRE are still changing in ways that breaks Eclipse and other tools. We will look at it soon after Neon is shipped.
Hello, I am using eclipse 4.6.3 (Neon3 version). I have installed JDK 1.9 from the path: https://jdk9.java.net/ and followed all instructions as mentioned in the link: https://marketplace.eclipse.org/content/java-9-support-beta-oxygen But while selecting the jdk path in the JRE field. It shows the error: Target is not a JDK Root. Java executable was not found. Could you please inform whether this bug is resolved or suggest ways to resolve this bug? Please reply at the earliest as it is causing a hindrance to our development activity. Thanks & Regards, Alpana
(In reply to Alpana Samanta from comment #2) Which version of Java 9 are you using ?
I am using Java9 (64-bit). Version is 9.0.0.0
(In reply to Alpana Samanta from comment #4) > I am using Java9 (64-bit). Version is 9.0.0.0 Can you also tell us which build you used? Running "Java -version" should give you the build ID too.
Hi Jay, The version and build ID are as follows: java version "9-ea" Java(TM) SE Runtime Environment (build 9-ea+164) Java HotSpot(TM) 64-Bit Server VM (build 9-ea+164, mixed mode) Thanks, Alpana
Hi, I am using Eclipse Mars.1 Release(4.5.1)and tried using java 9 (Version : 9-ea).I am also getting the following error while adding java 9 to Installed JREs : "Target is not a JDK root. System library was not found." Regards, Sourav
I tried with Oxygen and Java 9 164 build it works fine. The latest Beta Java 9 patches are only available for 4.7 (Oxygen).
Hi Sarika, Could you please provide a link to the document which you followed regarding any change in ini file of eclipse or any other change that you have made? I followed the instruction given in: https://marketplace.eclipse.org/content/java-9-support-beta-oxygen And I am trying to follow all these steps in Eclipse Oxygen, but still the error remains same. Waiting for your reply. Regards, Alpana
If you are not restricted to use market place, you can also try Y build which comes with Java 9 changes. http://download.eclipse.org/eclipse/downloads/drops4/Y20170420-1000/
Hi Sarika, Thank you for the solution. It worked now. Thanks, Alpana
Fixed (according to comment 11)
Agreed, this appears fixed to me. I had the exact same scenario. Don't know what a y build is but I downloaded eclipse Oxygen version 1a to replace version 1 and this allowed me to use my java 9 where version 1 did not.
Downloaded Eclipse and tried to access your fix for error : Target is not a JDK root. System library was not found. when adding JRE http://download.eclipse.org/eclipse/downloads/drops4/Y20170420-1000/
There is no Y build anymore, you can try with the I builds like - http://download.eclipse.org/eclipse/downloads/drops4/I20180108-2000/