redhat-developer / vscode-java

Java Language Support for Visual Studio Code
Eclipse Public License 2.0
2.08k stars 442 forks source link

Invalid runtime for JavaSE-1.8: The path (/usr/lib/jvm/java-8-openjdk) does not point to a JDK. #3745

Open Lassebq opened 3 months ago

Lassebq commented 3 months ago

Invalid runtime for JavaSE-1.8: The path (/usr/lib/jvm/java-8-openjdk) does not point to a JDK.

Environment
Steps To Reproduce
  1. Open a project with target JavaSE-1.8 or lower
  2. Notification pops out and the project gets built with a different JDK (OpenJDK 17 in my case)
Current Result

OpenJDK 8 shipped with the distro is not recognized as valid jvm

Expected Result

OpenJDK 8 shipped with the distro is recognized as valid jvm

Additional Informations

Other OpenJDK versions such as 17 and 21 are recognized properly and used in build

Lassebq commented 1 month ago

Same with openjdk version "1.8.0_422"