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_151. Note: 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

Continue Learning with Java Guides

Want to take your programming skills to the next level? Explore my practical Udemy courses on Java, Spring Boot, Microservices, Full-Stack Development, Docker, and Generative AI. You can also follow my structured learning roadmaps to become a professional developer.

By Ramesh Fadatare - Udemy Instructor Partner

Comments