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
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.