I recently upgrades from Java 8 to Java 11 (i.e. java-11-openjdk java-11-openjdk-devel), primarily using this article for reference:
https://sysadminxpert.com/install-openjdk-11-on-centos-7/
And in Eclipse (Spring Tools Suite 4.1.0, I updated each of the following:
Window > Preferences > Java > Installed JREs to:
JRE home: /usr/lib/jvm/java-11-openjdk-11.0.9.11-0.el7_9.x86_64
JRE name: java-11-openjdk-11.0.9.11-0.el7_9.x86_64
Window > Preferences > Java > Compiler to:
Compiler compliance level: 11
And for each individual Java project, I edited the Build Path > Configure Build Path> Libraries Tab > Modulepath > JRE System Library to point to:
Execution environment: JavaSE-11 (java-11-openjdk-11.0.9.11-0.el7_9.x86_64)
However, each time I open up Eclipse I get a warning stating:
Missing JDK
The JRE you are running Eclipse with appears to not be a JDK.
Spring Boot Live hovers will not work with a plain JRE.
The JRE you are running Eclipse with is: /usr/lib/jvm/java-11-openjdk-11.0.9.11-0.el7_9.x86_64
I've tried googling this, but other issues look like they are actually tied to using a JRE instead of a JDK. In my case, it seems like everything is pointing to the JDK. Has anyone run into a similar issue and know how to fix it?