Vscode-java: VSCode can't detect JDK !!

Created on 30 Oct 2018  路  6Comments  路  Source: redhat-developer/vscode-java

although that JDK is installed on my OS VSCode or your extension can't detect it!!

image

image

  • Operating System: elementary OS v5.0 juno
  • JDK version: 1.8.0_181
  • Visual Studio Code version: v1.28.2
  • Java extension version: v0.33.0

Most helpful comment

How did you install vscode? via flatpack?
In any case, try to point to a JDK in another directory

All 6 comments

have you tried setting "java.home" in VS Code's settings.json?

@fbricon nothing works it tells there is a missing folder ??

image
image
image

You can try the following:

"java.home": "/usr/lib/jvm/java-1.8.0-openjdk-amd64/",

How did you install vscode? via flatpack?
In any case, try to point to a JDK in another directory

@snjeza @fbricon it's over nothing works I'm tired of trying I'll only use VSCode on Ubuntu since it has the largest community and I'll post issues only from there

How did you install vscode? via flatpack?
In any case, try to point to a JDK in another directory

You save me

Was this page helpful?
0 / 5 - 0 ratings