Issue
I'm trying to add open jdk 11
on Spring Tool Suite.
I know already discussed this kind of issue here but i did not get right solution for my problem so posted again.
These are the steps I have done:
STS -> Windows -> Preferences -> Java -> Installed JREs -> Add -> Standard VM -> JRE Home -> Browsing downloaded OpenJDK11U-jdk_x64_windows_hotspot_11.0.4_11 version
When i try to add it on my STS, i'm getting
Target is not a JDK root. System library was not found.
It works well for java jdk 8
and automatically detecting jre but not working for Java 11
- STS Version: 3.8.4 Release
- Eclipse Base Version: Neon.3 (4.6.3)
Solution
You're doing it correctly, but with the wrong version. Java11 support was added with version 3.97:
https://docs.spring.io/sts/nan/v397/NewAndNoteworthy.html
So you must either update STS or do with a Java version less than 11.
Answered By - Alim Özdemir
Answer Checked By - Marilyn (JavaFixing Volunteer)