After you have installed the Java Development Kit in Windows, you must set the JAVA_HOME variable to the installation directory.
If you already know the installation path for the Java or Software Development Kit, go to Step 2 below. Otherwise, find the installation path by following these instructions:
C:\Program Files\Java
. Using File Explorer, open the directory C:\Program Files\Java
.jdk1.5.0_17
. If you have just installed the Java Development Kit, it will be installed to the newest directory, which you can find by sorting by date. For example, it may be installed in C:\Program Files\Java\jdk1.5.0_17
. This is the installation path.Once you have identified the JDK installation path:
JAVA_HOME
.This diagram shows setting the JAVA_HOME
variable to an installation path of C:/Java/jdk1.5.0_12
: