How to Set JAVA_HOME and Java Path on Windows 10

This tutorial shows how to set the JAVA_HOME environment variable (system variables) and Java Path on Windows 10 operating system.

Video Tutorial

Below video tutorial explained how to set the JAVA_HOME environment variable (system variables) and Java Path on Windows 10 operating system:

Quick Steps

Here are the typical steps to set JAVA_HOME on Windows 10.
  1. Search for Advanced System Settings in your Windows Search box. Click on Advanced System Settings.
  2. Click on Environment variables button: Environment Variables popup will open.
  3. Goto system variables section, and click on the New button to create a new variable then New System Variables popup will open.
  4. Give Variable Name: JAVA_HOME, and Variable value: Your Java SDK home path. Ex: C:\Program Files\java\jdk1.8.0_151Note: It should not include \bin. Then click on the OK button.
  5. Now you are able to see your JAVA_HOME in system variables list.
  6. Select Path (from system variables list) and click on the Edit button, A new pop will opens (Edit Environment Variables). It was introduced in Windows 10.
  7. Click on the New button and give %JAVA_HOME%\bin at the highlighted field and click Ok button.
Now, type following command in cmd to verify JAVA_HOME configuration:
c:\users/ramesh> java -version
These steps were implemented in the above video tutorial so watch the video tutorial to complete this tutorial.

Related Posts

Comments