Download Java JDK 13
Launch your favorite internet browser, I am going to use Google Chrome to download Java JDK 14 from the following download link.
Click JDK Download (JDK 13) Button
Now, scroll down, check “license agreement” radio button, and click the 2nd last Windows 64 bit exe file download link.
Let the download begin and wait until it completes the download. Once it is downloaded, locate the downloaded jdk exe compiled package and right click on it and open it.
Now, go with all the positive option like; allow, yes, next, install, finish.
Upon successful Java JDK 13 installation, you should get a successful installation window, now you can click finish.
Launch windows command prompt and run the following command
Add Java JDK 13 to system path
You might get ‘javac is not recognized as an internal or external command” error message. This is happening because JDK is not added to system path when we install it on windows OS. We need to add it to system path manually.
locate the Java> JDK-13>bin
Launch your Windows file explorer and open C drive and look for “Program Files”, under program files look for “Java” now look for “jdk-13” now for ‘bin’ folder.
Copy the jdk-13 bin path.
Click the Windows’ start button and type ‘variables’
On this new windows, click “Environment Variables”
Under “System Variables” select “Path” and click “Edit”
Click “New” and paste the JDK bin folder path and click “OK”, “OK”, and “OK”..
Verify Java JDK on Command Prompt
You should see something like this
Watch me install Java JDK 13 on Windows 10
Watch me install Java JDK 12 on Windows 10
Watch me Install Java JDK 11 – LTS on Windows
Install Open JDK 16 with Chocolatey
To install open JRE and JDK on Windows 7 and above, I am going to use Chocolatey. First I need to install Chocolatey on my Windows 10.
Install Open JDK
To install Open JDK with chocolatey, launch CMD or PowerShell with Admin right and check for the most latest version of OpenJDK availability by typing the following commnad.
choco list jdk
choco install openjdk16
When asked for your permission type A and hit enter and you are done.
To verify version of JRE, Java Compiler and jshell; relaunch your CMD or PowerShell and type the following commads.