How to configure the JAVA_HOME environment variable to set the base path of the JDK in Windows.
Posted by , Last modified by Aly Essa on 04 August 2016 12:04 PM


Setting the JAVA_HOME path in the environmental variables on the Windows local machine.



Windows Environment.

Java v7.0 JDK or JRE.



  1. Open the System Properties. Right click on My Computer and click Properties.
  2. Click Advanced System Settings on the left side.
  3. Hit Advanced Tab on the top menu and click on the Environment Variables button.
  4. Go to System Variables section, find the PATH variable, highlight it and click Edit.
  5. Add the location of the Java install to this list.  Ensure that there is a ; between the path values.
  6. Click New, give the new variable with the name JAVA_HOME and a variable value as C:\ top level directory of your Java installation. A sample path would be C:\Program Files\Java\jdk1.8.0_73\bin.


Some of the steps above will differ from one version of Windows to the next. The core steps are the same some sections may be labeled differently.