OpenJDK 18 Download and Installation on Windows 64 bit

OpenJDK Developers Guide

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


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

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

  2. Click on Ready for use - OpenJDK 18 link


  3. Download Ready for release OpenJDK 18

  4. Download the zip / tar distributions based on your operating system
  5. Download Ready for use OpenJDK 18 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-18




  8. Step #3: Configure


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


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


  11. Copy the extracted OpenJDK 18's bin path

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



    Step #4: Verify


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

    Java -version


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


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

    Step #5: OpenJDK Known Issues


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



x