How to Set JAVA_HOME and Java Path on Windows 10

🎓 Top 15 Udemy Courses (80-90% Discount): My Udemy Courses - Ramesh Fadatare — All my Udemy courses are real-time and project oriented courses.

▶️ Subscribe to My YouTube Channel (178K+ subscribers): Java Guides on YouTube

▶️ For AI, ChatGPT, Web, Tech, and Generative AI, subscribe to another channel: Ramesh Fadatare on YouTube

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

My Top and Bestseller Udemy Courses. The sale is going on with a 70 - 80% discount. The discount coupon has been added to each course below:

Comments

Spring Boot 3 Paid Course Published for Free
on my Java Guides YouTube Channel

Subscribe to my YouTube Channel (165K+ subscribers):
Java Guides Channel

Top 10 My Udemy Courses with Huge Discount:
Udemy Courses - Ramesh Fadatare