I downloaded language support for Java by Red Hat in Microsoft Visual Studio Code,
<If you are using bash from VSCode, should use:
export JAVA_HOME=/c/Program\ Files/Java/jdk1.8.0_172
You can use this in the terminal there.
In case this question is still open.
Try placing a space between the words, Program and Files, so it reads:
"C:/Program Files/Java/jdk1.8.0_131"
You have to restart VS Code after entering the java.home variable in the settings file.
Alternatively, setting that variable isn't even required. You can remove it from your settings and VS Code will automatically check your user/system environment variables for JDK_HOME and JAVA_HOME.
See "Setting the JDK" at https://marketplace.visualstudio.com/items?itemName=redhat.java
For information on how to set the environment variables, see Environment variables for java installation
You only need to put the space in between Program and files like:
java.home :- "C:/Program Files/Java/jdk1.8.0_111"
try to change path as follow:
"java.home":"C:/Program Files/Java/jdk1.8.0_202"
Make attention to the space in "Program Files" in the path.
you should change the path to be like this:
"java.home":"C:\\Program Files\\Java\\jdk1.8.0_111"