Skip to content

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

@Lassebq

Description

@Lassebq

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions