Set the JAVA_HOME Variable Windows 7 – Right click My Computer and select Properties > Advanced Windows 8 – Go to Control Panel > System > Advanced System Settings Windows 10 – Search for Environment Variables then select Edit the system environment variables Click the Environment Variables button. Under System Variables, click New. In the Variable Name field, enter either: JAVA_HOME if …
https://stackoverflow.com/questions/11161248/setting-java-home-environment-variable-in-ms-windows