Setting JAVA_HOME variable on Windows 7

Tushar Soam
2 min readJun 18, 2017
  1. Locate the Java installation directory first.

Example: C:\Program Files\Java\jdk1.8.0_131

2. Right click My Computer and select Properties > Advanced System Settings.

3. Click the Environment Variables button.

4. Under System Variables, click New

5. Enter the following details for the respective fields:

  • In the Variable Name: JAVA_HOME if you installed the JDK (Java Development Kit)
  • In the Variable Value: enter your JDK installation path

6. Click OK and now you can see your new variable in list of system variables.

7. Under System Variables, select Path named system variable
Click Edit.

8. Scroll to the end of the Variable value and insert below value at end

%JAVA_HOME%\bin;

Click OK

JAVA_HOME is finally configured on your windows 7.

To confirm, type below commands in Command Prompt

java -version

echo %JAVA_HOME%

--

--

Tushar Soam

Techie: Java | Spring Boot/Batch/MVC | Docker | Camunda BPM | Maven | Gradle | OpenStack | Ansible | MySQL | Hibernate | RESTful API’s