OpenJDK 19 Download and Installation on Windows

OpenJDK Developers Guide

Quick guide to download and install OpenJDK 19 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 19 doesn't provide any executables (windows .exe files ) for easy installation. This might make the OpenJDK 19 installation on Windows bit difficult for newbies. To install windows OpenJDK 19, all you have to do is, Download the latest OpenJDK 19 zip/tar file and unzip to a convenient directory on you windows machine. Set the path to downloaded OpenJDK 19 bin directory in the Path Variable.


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

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

  2. Click on Ready for use - OpenJDK 19 link


  3. Download Ready for release OpenJDK 19

  4. Download the zip / tar distributions based on your operating system
  5. Download Ready for use OpenJDK 19 builds for linux, macos, and windows


    Step #2: Install



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


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




  8. Step #3: Configure


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


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


  11. Copy the extracted OpenJDK 19's bin path

    C:\Avi\tools\jdk-19\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 19 bin path



    Step #4: Verify


    Once the OpenJDK 19 Download and installation is complete, we can verify the installed OpenJDK 19 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 19 version you installed.

    Java -version


    			
    C:\Users\SHRUTHI K S>java -version
    openjdk version "19.0.2" 2022-01-18
    OpenJDK Runtime Environment (build 19.0.2+8-86)
    OpenJDK 64-Bit Server VM (build 19.0.2+8-86, mixed mode, sharing)
    


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

    Step #5: OpenJDK Known Issues


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



x