eclipse does not recognize jdk 9, 11 or 14 (Target is not a JDK root. System library was not found.) windows 10

Asked

Viewed 358 times

0

I’m trying to test JDK9 with Eclipse (version 2020-09 M3 (4.17.0 M3) and also tested with Oxygen Release (4.7.0)) on Windows 10.

I installed jdk with the installer for windows jdk-11.0.8_windows-x64_bin. exe and also installed the JRE. Java 1.8 continues to function normally.

When entering the JDK the eclipse (Window > Preferences > Installed Jres > add > Standard VM > Directory...) returns me this message Target is not a JDK root. System library was not found and I can’t click on Finish

screen shot da tela de adicionar jvm com erro no eclipse

Things I’ve tried before:

  • change windows environment variable to JDK 9
  • test with other versions of JDK 11 and 14
  • test in other versions of Eclipse
  • test on another computer
  • install on another disk
  • use zip instead of installer

Has anyone had this problem? Know how to solve?

  • you could edit the question and include the error message?

  • yes, but the error is that of the Target title is not a JDK root. System library was not found

  • 1

    have you tried this link? https://stackoverflow.com/questions/41029647/target-is-not-a-jdk-root-system-library-was-not-found-eclipse-oxygen-4-7-jav

  • @Codigodesenior works partially. In the older version of the eclipse did not work, it continues with the same problem. I think the main question is pq works this JDK and the oracle does not work?

  • I don’t know much about Eclipse, the most I could find was this, in case I find another more useful warning

  • Try instead of putting the folder C:\Program Files\Java\jdk-11.0.8 put the folder C:\Program Files\Java\jdk-11.0.8\jre. Although the error suggests that the JDK root folder should be placed, perhaps what it wants is the JRE root folder, as the name of the "JRE home" field suggests. If this doesn’t work, try the C: Program Files Java jre-something folder, which can be installed separately (the JDK comes with the JRE, but you can also install it separately).

  • check whether the eclipse and jdk versions are x32 or x64. By the way you showed, the jdk is x64, so make sure the eclipse is also x64.

  • eclipse and jdk x64!!!

Show 3 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.