OpenJDK 16 Download and Installation on Windows 64 bit

OpenJDK Developers Guide

Quick guide to download and install OpenJDK 16 on Windows. - OpenJDK Community Version


What is OpenJDK


OpenJDK is the short form of Open Java Development Kit similar to Oracle's Java Development Kit used to develop Java Applications. Main difference between Oracle JDK and OpenJDK is that OpenJDK is free for all while Oracle Java Development Kit or Oracle JDK requires commercial license. For more details refer openjdk vs oracle jdk


If you want to know more about OpenJDK, you can go through Open Java Development Kit Quick guide.


Note: To uninstall previously installed OpenJDK please refer Uninstall OpenJDK Windows



Step #1: Download


There are many OpenJDK vendors out there in the market ( here is the OpenJDK Vendors List ), you can download OpenJDK from AdoptOpenJDK, Redhat OpenJDK, Zulu OpenJDK or from Community OpenJDK.

Below are the steps to download and install Community OpenJDK. If you would like to install OpenJDK from other vendors please refer :


Download and install Community OpenJDK



Unlike Oracle JDK or AdoptOpenJDK, community OpenJDK 16 doesn't provide any executables (windows .exe files ) for easy installation. This might make the OpenJDK 16 installation on Windows bit difficult for newbies. To install windows OpenJDK 16, all you have to do is, Download the latest OpenJDK 16 zip/tar file and unzip to a convenient directory on you windows machine. Set the path to downloaded OpenJDK 16 bin directory in the Path Variable.


Here is the step by step procedure to download and install the latest OpenJDK 16 on Windows 10 / Windows 8 / Windows 7.

  1. Go to https://jdk.java.net/

  2. Click on Reference Implementation - OpenJDK 16.


  3. Download Ready for release OpenJDK 16

  4. Download the zip / tar distributions based on your operating system


  5. Step #2: Install



  6. Extract the downloaded zip / tar file to your convenient directory.


  7. Example on windows: C:\Avi\tools\jdk-16




  8. Step #3: Configure


  9. Based on your operating system, set the OpenJDK 16 bin path in the environment path


  10. On windows follow the below steps to set the OpenJDK 16 classpath


  11. Copy the extracted OpenJDK 16's bin path

    C:\Avi\tools\jdk-16\bin

    Go System Properties and then to Edit the system environmental variables and Click on Environment Variables.

    Edit the windows system environment variable

    Edit the path variable

    Edit the windows system environment PATH variable

    Add path variable if its not already added and click OK to finish

    Add the OpenJDK 16 bin path



    Step #4: Verify


    Once the OpenJDK 16 Download and installation is complete, we can verify the installed OpenJDK 16 version using Command Prompt.


    Click on Windows Search Button and type cmd and then click on command prompt shortcut.
    Go to command prompt and type java -version
    The above command prints the OpenJDK 16 version you installed.

    Java -version


    			
    C:\Users\SHRUTHI K S>java -version
    openjdk version "16-ea" 2021-03-16
    OpenJDK Runtime Environment (build 16-ea+8-306)
    OpenJDK 64-Bit Server VM (build 16-ea+8-306, mixed mode, sharing)
    
    


    Congratulations !!! Now you have installed OpenJDK 16 Successfully.

    Step #5: OpenJDK Known Issues


    Note: Here is the list of OpenJDK known-issues OpenJDK Known Issues



x