redhat-developer / redhat-developer/vscode-java

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

Open
#3,745 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

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

Environment
  • Operating System: Alpine Linux edge
  • JDK version: openjdk version "1.8.0_402"
  • Visual Studio Code version: 1.89.1
  • Java extension version: v1.33.0
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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Reproduce on Alpine Linux edge with OpenJDK 8, then trace the extension's JDK/runtime validation entry point; done means JavaSE-1.8 accepts /usr/lib/jvm/java-8-openjdk without falling back to JDK 17.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.