vscode-java icon indicating copy to clipboard operation
vscode-java copied to clipboard

VSCode can't detect JDK !!

Open YousefSaber opened this issue 8 years ago • 6 comments

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

YousefSaber avatar Oct 30 '18 13:10 YousefSaber

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

fbricon avatar Oct 30 '18 13:10 fbricon

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

image image image

YousefSaber avatar Oct 30 '18 16:10 YousefSaber

You can try the following:

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

snjeza avatar Oct 30 '18 16:10 snjeza

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

fbricon avatar Oct 31 '18 20:10 fbricon

@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

YousefSaber avatar Nov 12 '18 23:11 YousefSaber

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

You save me

juliosilvacwb avatar Jan 13 '20 03:01 juliosilvacwb