Install Java on Windows

  1. Download JDK
  2. Installing Java
  3. Configure environment variable for Java

1. Download JDK

To download Java, please visit the link below:
There are many versions of Java, but I recommend you to download Java version 11 because this is one that will be supported by Oracle for a long time and is compatible with most relevant tools at this moment.
You should check that the operating system is 32bit or 64bit, to download the appropriate JDK.
Download Result:

2. Installing Java

Enter the directory where the JDK will be installed, for example:
  • C:\DevPrograms\Java\jdk-11.0.8\

3. Configure environment variable for Java

Next, we configure environment variable for Java. It is not mandatory, but if your computer install multiple versions of Java, it is necessary to configure to determine what the default java version being used.
If you using Window Vista or Window 7:
From the Desktop, right-click the Computer icon and select Properties.
Click New to create a new environment variable named JAVA_HOME.
Enter the path to the JDK directory.
  • Variable name: JAVA_HOME
  • Variable value: C:\DevPrograms\Java\jdk-11.0.8
Next modify the environment variable path
Add to front of path:
  • %JAVA_HOME%\bin;
You have successfully installed java.

Java Basic

Show More