Last Updated on 11 June 2021   |   Print Email
You know, Java 16 was release on March 2021 with the notable language features are Pattern matching for instanceof operator and Records. And as usual, Oracle offers 2 distributions of Java Development Kit (JDK): Oracle JDK (OTN license) and OpenJDK (GPL license).In this post, I’d like to guide you how to download and install Oracle JDK 16 on Windows operating system.
1. Download Windows installer for Oracle JDK 16
Go to the Oracle’s JDK 16 download page, and choose to download Windows x64 Installer, as shown below:It will download the jdk-16.0.1_windows-x64_bin.exefile on to your computer. And it’s strongly recommended to verify SHA256 checksum of the downloaded file before installing, by using this command in a command prompt window:
Then you’re ready to install Oracle JDK 16 on your Windows computer.
2. Install Java 16 with Oracle JDK
Run the downloaded file to launch the setup program for Oracle JDK 16:Click Next two times to proceed the installation on the default location (C:\Program Files\Java). It will be very quick. And click Close to complete the setup of JDK 16. Note that the setup program will update the system environment variable PATH accordingly.Now open a new command prompt window and type java –version, you should see the output like this:Also type javac –version to check the version of Java compiler:That means you have successfully installed Oracle JDK 16 on your Windows operating system.You can also watch the following video for installing Oracle JDK 16 step by step:
Nam Ha Minh is certified Java programmer (SCJP and SCWCD). He began programming with Java back in the days of Java 1.4 and has been passionate about it ever since. You can connect with him on Facebook and watch his Java videos on YouTube.
Comments