Update 2021-09

  • For versions 8 through 16, Oracle required a fee if their own Oracle JDK product was used in production, but not for dev, test, and training usages.
  • For Java 17, the Oracle JDK product is available under a new No-Fee Terms and Conditions license, discussed on the Oracle company blog.

On my first reading, it appears this new license makes production use free-of-cost (along with dev, test, and training usages), except for products sold for a fee while bundling the Oracle JDK product. But I am not an attorney, so read the terms yourself and consult legal advice as needed.

Keep in mind that many other vendors continue to provide implementations of the Java specs, as shown in the flowchart below. Some of these vendors sell support plans, either optionally or as a requirement for use of their product. Never assume, always read the detailed requirements for any distribution you obtain.

Another 2021 update: Add Microsoft to the list of vendors seen below.


Several vendors offer a choice of Java implementations

The Answer by Speakjava is correct and informative.

In addition, here is a flowchart I made to guide you in choosing a vendor for a Java implementation.

Or another way to view this: Your particular motivations or situation.

Answer from Basil Bourque on Stack Overflow
๐ŸŒ
Oracle
oracle.com โ€บ java โ€บ technologies โ€บ downloads
Download the Latest Java LTS Free
Download the Java including the latest version 17 LTS on the Java SE Platform. These downloads can be used for any purpose, at no cost, under the Java SE binary code license.
๐ŸŒ
BlueJ
bluej.org
BlueJ
A free Java Development Environment designed for beginners, used by millions worldwide.
๐ŸŒ
Oracle
java.com โ€บ en โ€บ download โ€บ manual.jsp
Download Java
Developers are encouraged to download the latest Java Development Kit from OTN downloads. Enterprise users with access to My Oracle Support or Oracle Software Delivery Cloud should download through those services.
๐ŸŒ
SourceForge
sourceforge.net โ€บ projects โ€บ drjava
DrJava download | SourceForge.net
Download DrJava for free. A lightweight programming environment for Java. DrJava is a lightweight programming environment for Java designed to foster test-driven software development.
Rating: 4.4 โ€‹ - โ€‹ 49 votes
๐ŸŒ
Softonic
en.softonic.com โ€บ downloads โ€บ java-free-for-windows
Download Java Free For Windows - Best Software & Apps
Download Java Free For Windows. Free and safe download. Download the latest version of the top software, games, programs and apps in 2026.
Top answer
1 of 6
105

Update 2021-09

  • For versions 8 through 16, Oracle required a fee if their own Oracle JDK product was used in production, but not for dev, test, and training usages.
  • For Java 17, the Oracle JDK product is available under a new No-Fee Terms and Conditions license, discussed on the Oracle company blog.

On my first reading, it appears this new license makes production use free-of-cost (along with dev, test, and training usages), except for products sold for a fee while bundling the Oracle JDK product. But I am not an attorney, so read the terms yourself and consult legal advice as needed.

Keep in mind that many other vendors continue to provide implementations of the Java specs, as shown in the flowchart below. Some of these vendors sell support plans, either optionally or as a requirement for use of their product. Never assume, always read the detailed requirements for any distribution you obtain.

Another 2021 update: Add Microsoft to the list of vendors seen below.


Several vendors offer a choice of Java implementations

The Answer by Speakjava is correct and informative.

In addition, here is a flowchart I made to guide you in choosing a vendor for a Java implementation.

Or another way to view this: Your particular motivations or situation.

2 of 6
58

Summary

If you need to have java in your production servers for free, your have two options

#1 OpenJdk

The OpenJDK is the open source implementation of the Java SE Specification and it is maintained by Oracle.

More details: https://whichjdk.com

Source code can be found here: https://github.com/openjdk

Binary can be found here: https://jdk.java.net/archive

Just select the latest or an specific version and download it. Check this example.

#2 JDK Customized by Third Parties

  • Amazon Corretto
    • https://docs.aws.amazon.com/corretto/latest/corretto-11-ug/downloads-list.html
  • Zulu
    • https://www.azul.com/downloads/zulu-community/?architecture=x86-64-bit&package=jdk


Licences OTN vs BCL

Oracle JDK 8 (aka 1.8) no longer uses BCL (Binary Code License). From April 16, 2019, Oracle JDK 8 uses the OTN (Oracle Technology Network) license, which requires you to create an Oracle account to download JDK 8 and payment!!

BCL = Oracle Binary Code License

  • You can use it, but you can't modify it
  • You agree not to sue Oracle if anything goes wrong
  • You can redistribute/publish it (so that you can sell products with Java embedded), but if you do, you agree to indemnify Oracle; so if someone sues you, you can't drag Oracle into it.

It's really just there to protect Oracle's intellectual property and to shield them from being sued when bugs are found.

source: https://www.quora.com/In-short-what-does-the-Oracle-Binary-Code-License-Agreement-for-Java-SE-actually-say-or-prohibit/answer/Jon-Harley

As a summary: FREE with risks and without any fault of Oracle

OTN = Oracle Technology Network License

As a summary: Opposite to BCL and FREE just for development in your laptop. For enterprises, you must PAY

OpenJDK and Oracle JDK

Both OpenJDK and Oracle JDK are created and maintained currently by Oracle only.

OpenJDK and Oracle JDK are implementations of the same Java specification passed the TCK (Java Technology Certification Kit).

Most of the vendors of JDK are written on top of OpenJDK by doing a few tweaks to [mostly to replace licensed proprietary parts / replace with more high-performance items that only work on specific OS] components without breaking the TCK compatibility.

Source: Differences between Oracle JDK and OpenJDK



Free official options

Here I will list and keep updated the official links, ready to download the most used java versions

Oracle Java 1.4, 5, 6 and 7 (Deprecated)

Oracle does not show any message related to license changes for Java 1.4, 5, 6 and 7 downloads. So we can use them for development and production deployment, accepting issues and security problems because these versions are so ancient!!

  • Oracle downloads:
  • https://www.oracle.com/java/technologies/java-archive-javase-v14-downloads.html
  • https://www.oracle.com/java/technologies/java-archive-javase5-downloads.html
  • https://www.oracle.com/java/technologies/javase-java-archive-javase6-downloads.html
  • https://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html

Legacy versions prior to 7, does not have and will not have any update. Maybe a sales contact could be a solution if your have a Legacy Systems running over this java old versions.

Oracle Java 8 update 202

Just Java SE 8 JDK 8u202 and earlier versions are free for development and production deployment. You can download it from:

  • https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html

Openjdk 8 (Deprecated)

OpenJDK is a ORACLE initiative. More details here: https://adoptopenjdk.net/

compressed mode

You can download the latest v8 release from here. Latest version:

  • https://github.com/AdoptOpenJDK/openjdk8-upstream-binaries/releases/download/jdk8u292-b10/OpenJDK8U-jdk_x64_windows_8u292b10.zip
  • https://github.com/AdoptOpenJDK/openjdk8-upstream-binaries/releases/download/jdk8u292-b10/OpenJDK8U-jdk_x64_linux_8u292b10.tar.gz
  • I can't find the version for osx :(

Follow this to download using curl

install mode

apt-get install openjdk-8-jre (just run apps)
apt-get install openjdk-8-jdk (develop and run)

From https://openjdk.java.net/install/

Openjdk 11

  • https://jdk.java.net/java-se-ri/11
  • https://github.com/AdoptOpenJDK/openjdk11-binaries/releases
apt-get update
apt-get install openjdk-11-jdk

Openjdk 17

  • https://jdk.java.net/java-se-ri/17

Openjdk 19

  • https://jdk.java.net/java-se-ri/19

Openjdk 21

  • https://jdk.java.net/21/


Free From Trusted Third Parties

Zulu Community (Java 6,7,8,11,13,14,15)

  • https://www.azul.com/downloads/zulu-community/?architecture=x86-64-bit&package=jdk

Amazon Corretto (Java 11)

  • https://docs.aws.amazon.com/corretto/latest/corretto-11-ug/downloads-list.html

Eclipse OpenJ9

  • https://www.eclipse.org/openj9/

More third parties

The following implementations, listed in alphabetical order, are open source and free to use:

  • AdoptOpenJDK
  • Azul Zulu
  • Bck2Brwsr
  • CACAO
  • Codename One
  • DoppioJVM
  • GraalVM CE
  • HaikuVM
  • HotSpot
  • Jamiga
  • JamVM
  • Jelatine JVM
  • Jikes RVM (Jikes Research Virtual Machine)
  • JVM.go
  • leJOS
  • Maxine
  • Multi-OS Engine
  • RopeVM
  • uJVM


NON-FREE options

You should pay for these versions but in return you will have a lot of features suported by Oracle or another third parties

Oracle Java

https://www.oracle.com/java/technologies/downloads/

  • Java 19
    • https://www.oracle.com/java/technologies/downloads/#java19
  • Java 17
    • https://www.oracle.com/java/technologies/downloads/#java17
  • Java 11
    • https://www.oracle.com/java/technologies/downloads/#java11

Oracle Java 8 update 221

Since the java 8 update at April 16, 2019 8u221, all versions and updates for (java 8,9,10,11,14) has no cost just for personal use and development purposes. Any other use, needs a Commercial License.

  • https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html latest update 251
  • https://www.oracle.com/java/technologies/javase/javase8u211-later-archive-downloads.html previous updates (241,231,221,212,211)

Source: https://www.baeldung.com/oracle-jdk-vs-openjdk

Proprietary Implementations

There are also other private or commercial implementations:

  • Azul Zing JVM
  • CEE-J
  • Excelsior JET (Discontinued)
  • GraalVM EE
  • Imsys AB
  • JamaicaVM (aicas)
  • JBlend (Aplix)
  • MicroJvm (IS2T โ€“ Industrial Smart Software Technology)
  • OJVM
  • PTC Perc
  • SAP JVM
  • Waratek CloudVM for Java

Source: https://www.baeldung.com/oracle-jdk-vs-openjdk



Notes

  • Oracle Java 9 and 10 has reached end of support.
    • https://stackoverflow.com/a/50333498/3957754


More References

  • Differences between Oracle JDK and OpenJDK

  • https://whichjdk.com/

  • https://www.openlogic.com/blog/java-experts-openjdk-vs-oracle-jdk

  • https://www.oracle.com/technetwork/java/javase/overview/faqs-jsp-136696.html

  • https://www.oracle.com/downloads/licenses/javase-license1.html

  • https://openjdk.java.net/projects/jdk8/

  • https://www.oracle.com/java/technologies/javase/8u-relnotes.html

  • https://gist.github.com/jrichardsz/83db09163ca9a0db4c9cd4f91cbf0598/

  • https://jdk.java.net/archive

๐ŸŒ
Softonic
en.softonic.com โ€บ downloads โ€บ java-programming
Download Java Programming - Best Software & Apps
Download Java Programming. Free and safe download. Download the latest version of the top software, games, programs and apps in 2026.
๐ŸŒ
Microsoft Store
apps.microsoft.com โ€บ detail โ€บ 9nblggh08hwj
Java for everyone - Free download and install on Windows | Microsoft Store
This app provides you all basic and advanced details about every concept used in java. All data is divided within list and easy to understand. You don't require a running internet connection for the functioning of the app.
Find elsewhere
๐ŸŒ
Wikipedia
en.wikipedia.org โ€บ wiki โ€บ Free_Java_implementations
Free Java implementations - Wikipedia
December 13, 2025 - Free Java implementations are software projects that implement Oracle's Java technologies and are distributed under free software licences, making them free software. Sun released most of its Java source code as free software in May 2007, so it can now almost be considered a free Java ...
๐ŸŒ
Microsoft Store
apps.microsoft.com โ€บ detail โ€บ 9nhvrhcm59zx
Java Programming - Free download and install on Windows | Microsoft Store
This Java Programming app enables you to carry Java programming Tutorials in your device. It contains many Important programs. This app has a very simple user interface and the contents can be easily understood by the users.
๐ŸŒ
Oracle Java
dev.java โ€บ download
Downloading Java - Dev.java
Downloading Java is simple and straightforward. Oracle offers a simple download with a permissive license at its official download page.
๐ŸŒ
BlueJ
bluej.en.softonic.com โ€บ home โ€บ windows โ€บ development & it โ€บ ides/source editors
BlueJ - Download
November 3, 2025 - BlueJ, free and safe download. BlueJ latest version: Free integrated development environment for Java. BlueJ is a simple, easy-to-use, and efficient i
Rating: 7.6/10 โ€‹ - โ€‹ 2.04K votes
๐ŸŒ
Uptodown
en.uptodown.com โ€บ windows โ€บ java
Top Java Tools for Windows
Download Java tools to streamline your coding on Windows. Enhance your projects effortlessly and efficiently.
๐ŸŒ
The Eclipse Foundation
eclipse.org โ€บ downloads
Eclipse Downloads | The Eclipse Foundation
The Eclipse Foundation - home to a global community, the Eclipse IDE, Jakarta EE and over 415 open source projects, including runtimes, tools and frameworks.
๐ŸŒ
IDRSolutions
blog.idrsolutions.com โ€บ home โ€บ the top 11 free ide for java coding, development & programming
The top 11 Free IDE for Java Coding, Development & Programming
October 15, 2024 - Newbie users can check values and call methods on objects. They can also pass them as parameters and Java expressions can be invoked without compiling. This means BlueJ is a powerful graphical shell/REPL for Java. The BlueJ project is free and open source software.
๐ŸŒ
Reddit
reddit.com โ€บ r/learnjava โ€บ download java: java.com vs oracle & others?
r/learnjava on Reddit: Download Java: Java.com VS Oracle & Others?
March 9, 2024 -

Taking my first ever Java course. Instructions say I need:

"Prepare to download and install the Java compiler (javac), the Java Virtual Machine (jvm) and a development system such as NetBeans or Eclipse. You can use onlineGDB.com Links to an external site. for assignments until we reach the Graphical User Interface (GUI) projects. You will not be able to complete GUI projects unless you have access to a computer with the Java compiler and runtime (JRE)."

What's the difference between typing in "Java" on google and downloading it from the actual Java website versus Oracle (since that's the only other main one that pops up when I type Java in google)?

๐ŸŒ
Oracle
oracle.com โ€บ java โ€บ technologies โ€บ javase โ€บ jdk17-archive-downloads.html
Java Archive Downloads - Java SE 17.0.12 and earlier
For current Java releases, please visit Oracle Java SE Downloads. This software is licensed under the Oracle No-Fee Terms and Conditions License.
๐ŸŒ
SourceForge
drjava.sourceforge.net
DrJava
We cannot provide a description for this page right now
๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ docs โ€บ languages โ€บ java
Java in Visual Studio Code
November 3, 2021 - Leveraging the power of Visual Studio Code, Java developers get an excellent tool for both quick code editing and also the full debugging and testing cycle. It's a great choice for your Java work if you're looking for a tool which: Is fast, ...
๐ŸŒ
Oracle
oracle.com โ€บ java โ€บ technologies โ€บ javase โ€บ javase8-archive-downloads.html
Java Archive Downloads - Java SE 8
Downloading these releases requires an oracle.com account. If you don't have an oracle.com account you can use the links on the top of this page to learn more about it and register for one for free. For current Java releases, please consult the Oracle Software Download page.