find java_home path in cmd
Verify JAVA_HOME
Open a Command Prompt window (Win⊞ + R, type cmd, hit Enter).
Enter the command echo %JAVA_HOME% . This should output the path to your Java installation folder. If it doesn't, your JAVA_HOME variable was not set correctly.