2Aguy
2Aguy

Reputation: 4655

Java 9 on Mac OS X Eclipse Neon Error "Target is not a JDK root. System library was not found."

Is it possible to use Java 9 as an Installed JRE in eclipse on OS X (El Capitan 10.11.6)? I've installed both the Java 9 (EA build 165) JRE and JDK from the JDK Early Access Release page and I get the following error in eclipse Neon.3 (4.6.3) when I attempt to add Java 9:

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

enter image description here I found this eclipse bug, but it's almost a year old at this point. Surely this has been fixed by now?

I did try installing the Java 9 Beta Support Plugin (also kinda old at this point), and that doesn't seem to work either.

(Note that I am asking about Eclipse Neon (4.6), not Eclipse Oxygen (4.7) as mentioned on this stackoverflow article).

I appreciate the help!

Upvotes: 3

Views: 2390

Answers (1)

Lord Metal
Lord Metal

Reputation: 31

"Target is not a JDK root. System library was not found." The solution that worked for me with same problem in Win7 with Oxygen and jre9 was to update Eclipse.

  1. Menu: Help:"Check for updates" and update.
  2. Restart Eclipse.

Before i solved the problem i've changed my Eclipse.ini in Eclipse root dir to

-vm
C:\Program Files\Java\jdk-9.X.X\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8
--add-modules=ALL-SYSTEM
-Xms40m
-Xmx1024m

After this line

--launcher.appendVmargs

It did'nt help before i updated and i'm not sure if this is needed to so i recomend all who have the same problem to first update Eclipse and test. If it still is not working change the ini arrording to mine.

Upvotes: 0

Related Questions