1 Click the Environment Variables button. 2  Under System Variables, click New. 3  Enter the variable name as JAVA_HOME. 4  Enter the variable value (one of the paths mentioned above) as the installation path for the Java Development Kit. 5  Click OK. 6  Click Apply Changes.