Openjdk Availability for Windows Os

Where do I find the latest OpenJDK 8 GA build windows 10?

2019-07-02 Edit: Some parts of OpenJDK provide "official" binaries now. OpenJDK 8 and 11 are available here: https://adoptopenjdk.net/upstream.html

Original Answer:

The OpenJDK project itself publishes only the source code. They do not publish binaries at all.

OpenJDK the project has some conventions that may not be obvious. For example jdk8 is the branch where all work was done before OpenJDK 8 was released. After that, work continues in the jdk8u branch: http://hg.openjdk.java.net/jdk8u/jdk8u/. Each new version gets a version like 8u133, which is kind of like 8.133, if you will. The very first release of OpenJDK 8 was just 8 (or 8u0). Newest is 8u191.

If you want an OpenJDK build, you need to get it from somewhere other than OpenJDK. Some options (in alphabetical order):

  • AdaptOpenJDK: https://adoptopenjdk.net/releases.html#x64_win (8u181, 3 months old)
  • Azul: https://www.azul.com/downloads/zulu/zulu-windows/. (8u181, 3 months old)
  • OJDKbuild: https://github.com/ojdkbuild/ojdkbuild#downloads-for-windows-x86_64 (8u191)
  • Oracle: https://jdk.java.net/java-se-ri/8 (8u0, ~4 years old). Avoid this at all costs for production.
  • Red Hat: https://developers.redhat.com/products/openjdk/download/ (8u181, 3 months old)

How to install OpenJDK 11 on Windows?

  1. Extract the zip file into a folder, e.g. C:\Program Files\Java\ and it will create a jdk-11 folder (where the bin folder is a direct sub-folder). You may need Administrator privileges to extract the zip file to this location.

  2. Set a PATH:

    • Select Control Panel and then System.
    • Click Advanced and then Environment Variables.
    • Add the location of the bin folder of the JDK installation to the PATH variable in System Variables.
    • The following is a typical value for the PATH variable: C:\WINDOWS\system32;C:\WINDOWS;"C:\Program Files\Java\jdk-11\bin"
  3. Set JAVA_HOME:

    • Under System Variables, click New.
    • Enter the variable name as JAVA_HOME.
    • Enter the variable value as the installation path of the JDK (without the bin sub-folder).
    • Click OK.
    • Click Apply Changes.
  4. Configure the JDK in your IDE (e.g. IntelliJ or Eclipse).

You are set.

To see if it worked, open up the Command Prompt and type java -version and see if it prints your newly installed JDK.

If you want to uninstall - just undo the above steps.

Note: You can also point JAVA_HOME to the folder of your JDK installations and then set the PATH variable to %JAVA_HOME%\bin. So when you want to change the JDK you change only the JAVA_HOME variable and leave PATH as it is.



Related Topics



Leave a reply



Submit