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

Can Java 9 be used as the installed JRE in eclipse for OS X (El Capitan 10.11.6)? I have installed the Java 9 JRE and JDK (EA build 165) from the JDK Early Access Release page and I get the following error in eclipse Neon.3 (4.6.3) when I try to add Java 9:

The target is not the root of the JDK. System library not found.

enter image description here I found this eclipse error but it is almost a year at the moment. Probably this has already been fixed?

I tried installing Java 9 Beta Support Plugin (also old this time) and that doesn't seem to work either.

(Note that I am asking about Eclipse Neon (4.6) and not Eclipse Oxygen (4.7) as mentioned in this stackoverflow question. )

I appreciate the help!

+3


source to share


1 answer


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

  • Menu: Help: Check for Updates and Update.
  • Restart Eclipse.

Before solving the problem, I changed my Eclipse.ini in the Eclipse root directory 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 didn't help before I upgraded and I'm not sure if this is necessary, so I recommend anyone with the same problem to upgrade Eclipse and test first. If it still doesn't work, change the ini entry to mine.

0


source







All Articles