VS Code: "The 'sonarlint.ls.javaHome' variable defined in VS Code settings points to a missing folder" using a jre

Version tested:
Windows 7
VS Code: 1.30.2
SonarLint for VS Code: 1.5.0
Java: JRE & JDK 1.8.0_102 & 1.8.0_192

Error observed:
The plugin complains about the ‘sonarlint.ls.javaHome’ setting, if pointing to a jre installation:
The ‘sonarlint.ls.javaHome’ variable defined in VS Code settings points to a missing folder

Steps to reproduce:
Install VS Code, SonarLint plugin and Java JRE on Windows (tested on 7). Then configure the ‘sonarlint.ls.javaHome’ setting to point to the JRE folder.

Workaround:
Pointing to a JDK folder fixes the problem.

Just to close this thread, I think this issue has been solved in recent SonarLint for VSCode releases.

I just installed the latest version of the extension into the latest version of Code and am getting the same error:
image

1 Like