Skip to content

Openjdk is being treated as invalid JDK on vscode for linux #1092

@piyushkrmaurya

Description

@piyushkrmaurya

Issue Type: Bug

The following error is received on Configure Java Runtime Extension Page of the Language Support for Java Extension:

This path is not pointing to a JDK.

But java commands are working alright in the terminal.

echo $JAVA_HOME gives /usr/share/java/jdk-11.0.4
and java --version produces this output:

openjdk 11.0.4 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu219.04)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu219.04, mixed mode, sharing)

Extension version: 0.50.0
VS Code version: Code 1.39.1
OS version: Linux x64 5.0.0-31-generic snap

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