
In the New System Variable form, enter the name and value as follows: Click OK, and you will see the JAVA_HOME variable is added to the list. Create the JAVA_HOME environment variable by clicking the New button at the bottom. The System Properties dialog appears, click the button Environment Variables.ģ. Click the suggested item Edit the system environment variables: Open the System Environment Variables dialog by typing environment in the search area on Start menu. The version number may vary, depending on the JDK you installed. Here, the home of JDK is under C:\Program Files\Java\jdk1.80_201. Open My Computer and navigate to this directory, you will see:

Firstly, you need to identify the Java home directory, which is typically under C:\Program Files\Javadirectory. How to set JAVA_HOME on Windows 10Here are the visual steps to properly set value for the JAVA_HOME and update the PATH environment variables in order to setup Java development environment on your computer: 1. For example, typing java in the command prompt showing this error: 'java' is not recognized as an internal or external command, operable program or batch file. If the PATH environment variable doesn’t contain a path to JRE/JDK, a Java-based program might not be able to run. So the PATH environment variable should include JAVA_HOME: PATH = Other Paths + JAVA_HOMEOther paths are set by various programs installed in the operating system. For example: JAVA_HOME = c:\Program Files\Java\jdk1.8.0_201 Why is JAVA_HOME needed?To develop Java applications, you need to update the PATH environment variable of the operating system so development tools like Eclipse, NetBeans, Tomcat… can be executed because these programs need JDK/JRE to function. What is JAVA_HOME?By convention, JAVA_HOME is the name of an environment variable on the operating system that points to the installation directory of JDK (Java Development Kit) or JRE (Java Runtime Environment) – thus the name Java Home.

In this article, you will understand the details about JAVA_HOME environment variable and how to set it on Windows 10.
