I downloaded language support for Java by Red Hat in Microsoft Visual Studio Code,
<My Visual Studio Code is set to use the 32 bit version of JDK
A default java.exe is installed in your %SYSTEMROOT%\System32
Check java version from command line:
java -version
You might need to add your version to PATH:
set PATH=%PATH%;C:\Program Files (x86)\Java\jdk1.8.0_111\bin
And set your system JAVA_HOME:
setx -m JAVA_HOME "C:\Program Files (x86)\Java\jdk1.8.0_111"
Restart cmd and try:
echo %JAVA_HOME%
Restart Visual Studio Code and be happy.
Use set
instead of setx
for local user.