Setting the JAVA_Home Environment Variable on Windows
Before you begin the installation process, you must configure environment variables that specify the location for your installation of 64-bit Java.
Set the JAVA_HOME variable to point to the Java application folder on your system, and add the path to the Java bin folder to the system Path variable.
Note: The environment variable settings described here may already be configured if you ran a setup application to install Java.
-
Open the Windows Environment Variables settings dialog box.
-
Add JAVA_HOME as a new Windows environment variable to specify the Java application folder.
-
Add %JAVA_HOME%\bin to the Path variable.
- In System variables, click the Path variable.
- Click Edit.
- Double-click the first blank entry in the box.
- Enter %JAVA_HOME%\bin.
- Click OK