Can you show exactly what the JAVA_HOME environment variable value is, using either
Command Prompt
echo %JAVA_HOME%
PowerShell
gci env:JAVA_HOME
Please copy the output exactly as is, including any surrounding quotes. For example, for me, running the PowerShell version yields
Name Value
---- -----
JAVA_HOME C:\Program Files\Java\jdk1.8.0_162