How to Install JDK 8 on Windows 10? (JDK1.8.0_201)

  • Java
  • 2 mins read

In this tutorial, you will learn how to install JDK 8 on Windows 10 and how to set the Windows 10 environment for Java development version 1.8.0_201.

Download JDK 8 (1.8.0_201)

Click on the following link to download JDK1.8.0_201 from Oracle.com.

After completing the download, install the JDK 8 on Windows 10 as the steps mentioned below:

Install JDK 8 (1.8.0_201) on Windows 10

  1. Double click the executable file named jdk-8u201-windows-x64.exe to start the installer.
  2. Just click on the Next button on the first two steps, and JDK 8 installation will ask you to specify the installation folder for JDK and JRE on Windows. As shown in the below image:

Specify JDK 8 installation folder location on Windows 10.

  1. After defining the folder location, click on the Next button.
  2. It will install the JDK and JRE version 1.8.0_201 on Windows 10.

JDK and JRE folder location.

Your setup is complete. Now set the Windows 10 environment for Java development.

Set JAVA_HOME Variable and Path Variable for JDK8 on Windows 10

  1. Press the Windows key on your keyboard to open the Windows menu and type "advance system settings" and click on the option as shown in the below image:

Advance system settings.

  1. In the System Properties, click on the Environment Variables.
  2. In the Environment Variables window, in the System Variables section, click on the New button to create a JAVA_HOME variable. Make sure it does not already exist if exist then modify it. Now copy and paste the JDK 8 path (C:\Program Files\Java\jdk1.8.0_201) in the variable value field as shown in the below image:

JAVA_HOME

  1. Now click on the OK button to close the window.
  2. Then locate the PATH variable in the System Variables section and click on the Edit button.
  3. Then set the PATH variable if not set already for JAVA_HOME. Click on the New button and then copy and paste the path (%JAVA_HOME%\bin) as shown in the below image:

Set PATH Variable in Windows 10

Click on the OK button and close all the sub-windows of Advance System Setting by clicking on the OK button.

Now the installation of JDK 8 on Windows 10 is complete with its environment settings.

See also:

How to Declare Char Variable in Java?