How To Install Java 13 On Windows
This tutorial provides all the steps required to install the Oracle Java 13 officially distributed by Oracle for Windows. It provides the steps required to install Java 13 on Windows 10. The steps should be the same for other versions of the Windows operating system.
Information: The official installer provided by Oracle does not include the bundled JRE with JDK since Java 11. It can be installed separately if required. We can use Java 13 free for general-purpose computing usage. You can also follow How To Install OpenJDK 13 On Windows and How To Install OpenJDK 13 On Ubuntu to install the open-source version of Java 13 i.e. OpenJDK 13. Java 13 is using the Commercial License and OpenJDK 13 is using the open-source GNU General Public License v2, with the Classpath Exception (GPLv2+CPE).
Step 1 – Download JDK
Open the browser and search for Download JDK 13 or click the link to download from the Oracle website. It will show the JDK download page as shown below:
Click the Download Link as highlighted in Fig 1. It will ask to Accept the License Agreement and provides the link to download the installer as shown in Fig 1-a and Fig 1-b. Click the Download Button to start downloading JDK 13 installer for Windows.
Step 2 – Install JDK
Now execute the JDK installer by double-clicking it. It might ask system permission before starting the installation. Click on yes to allow the installer to execute itself. It shows the installer welcome screen as displayed.
Click on Next to initiate the installation process. The next screen shows options to change the installation path. We can change the installation location on this screen if required as displayed.
Now click on Next Button to start the installation. It will show the progress as displayed.
It shows the success screen after completing the installation as mentioned.
Now open the Command Prompt and type the command java -version to confirm whether it’s installed successfully as mentioned below:
It will either show the message – java is not recognized as an internal or external command or show the previously installed version. In order to start using the JDK installed by us from the command prompt, we need to set the environment variable. You can follow the below-mentioned steps to do so.
Command to check Java version : java -version
How to set Java path:
Right Click -> My Computer(This PC) -> Properties -> Advanced System Settings
The above steps will open the Windows settings panel as shown below:
Now click on Environment Variables, select Path under System Variables section and click on Edit. We need to add the path of installed JDK to system Path.
Remove the path of previously installed JDK. Also, update JAVA_HOME in case it’s already set. Now click on New Button and add the path to installed JDK bin which is C:\java\java-13\jdk-13\bin in my case. Press OK Button 3 times to close all the windows. This sets the JDK 13 on system environment variables to access the same from the console.
You must log in to post a comment.