Java Licensing Fundamentals

Free Java versions: the complete 2026 list.

Which Java builds you can run in production without paying Oracle — the NFTC free window, the versions that need a subscription, and every free OpenJDK distribution.

Published 15 Feb 20262200-word guideIndependent of Oracle
Not an Oracle partner or reseller
100% buyer-side advisory
Money-back audit defence guarantee
340+ Java engagements

On this page

Free vs paid: the real distinctionOracle JDK under NFTC: free, with limitsOracle JDK that needs a subscriptionFree OpenJDK distributionsThe complete 2026 tableChoosing a free buildPitfalls that turn free into paidIndependent helpFrequently asked questions

“Is Java free?” has no single answer — it depends entirely on which build you download and which version it is. The good news for 2026: a large share of Java can still be run in production at zero cost. This guide lists every free Java option, flags the ones that quietly require an Oracle subscription, and shows how to stay on the free side of the line.

Free vs paid: the real distinction

There are two separate things people call “Java”, and conflating them is the root of most licensing mistakes.

OpenJDK is the open-source reference implementation of the Java SE platform. Its source code is licensed under the GPL version 2 with the Classpath Exception — a licence that explicitly permits free use, including in commercial production, with no fee. Many vendors compile that source into ready-to-run builds.

Oracle JDK is Oracle's own commercial build. It is functionally near-identical to OpenJDK, but it ships under Oracle's own licence terms — and those terms decide whether your use is free. Depending on the version, that licence is the NFTC, the OTN agreement, or the old BCL.

So the question is never “is Java free”. It is “which build, which version, and which licence”. Get those three facts for every installation and the answer becomes clear.

Oracle JDK under NFTC: free, with limits

In September 2021 Oracle released the No-Fee Terms and Conditions (NFTC) licence, starting with Oracle JDK 17. Under the NFTC, Oracle's own JDK build can be used free of charge — including in commercial production — but only for a defined window.

That window runs until one year after the next Long-Term-Support release ships. When the free period for a given version ends, continued use of those specific Oracle JDK builds — including the security updates released after that date — requires a Java SE subscription.

So Oracle JDK 17 and Oracle JDK 21 are NFTC-licensed and free today, but each has an expiry on its free status. NFTC is best understood as a free trial period attached to each release, not a permanent grant. Treat any NFTC build in production as something with a calendar attached. Our NFTC explainer covers the timing rules in detail.

Oracle JDK that needs a subscription

Several Oracle JDK situations are not free and routinely surface in audits:

The most common costly mistake

Oracle JDK 11 is the trap. It downloads as easily as any free build, but its OTN licence forbids free production use. A fleet of OTN-licensed Oracle JDK 11 in production is one of the most frequent triggers for a large Java audit claim.

Free OpenJDK distributions

If you want Java that is unambiguously free for production — with no expiry window and no audit exposure — use an OpenJDK build from a vendor other than Oracle. All of the following are licensed under GPLv2 with the Classpath Exception and are free for commercial production use:

These distributions are built from the same OpenJDK source. For the overwhelming majority of applications they are drop-in compatible with Oracle JDK, which is what makes migration low-risk.

The complete 2026 table

Build & versionLicenceFree for production?
Oracle JDK 8 (post-2019 updates)BCL / subscriptionNo — subscription required
Oracle JDK 11OTNNo — production needs a subscription
Oracle JDK 17NFTCFree within the NFTC window
Oracle JDK 21NFTCFree within the NFTC window
Eclipse Temurin (all versions)GPLv2 + CEYes — free
Amazon Corretto (all versions)GPLv2 + CEYes — free
Azul Zulu (Community builds)GPLv2 + CEYes — free
BellSoft Liberica (all versions)GPLv2 + CEYes — free
Red Hat build of OpenJDKGPLv2 + CEYes — free

Choosing a free build

For most organisations the practical choice is straightforward. If you want zero licensing exposure and no expiry dates to track, standardise on a non-Oracle OpenJDK distribution. Eclipse Temurin is the common neutral default; Amazon Corretto is a strong choice for cloud-heavy estates; Azul Zulu and BellSoft Liberica suit teams that want an optional commercial-support path without paying Oracle for it.

What matters most is consistency. A single, governed standard build across the estate — with a documented LTS version policy — is far easier to keep compliant than a mix of Oracle and non-Oracle JDKs accumulated over the years. Our comparison of Azul, Corretto, and Temurin helps narrow the choice.

Pitfalls that turn free into paid

Even an estate that intends to be free can drift into exposure. Watch for:

The defence is a real inventory: every installation, with vendor and version recorded, and a standing process to spot Oracle JDK creeping back in.

Independent help

Most organisations that audit their own estate find they are paying for Oracle Java they do not need — or are exposed on Oracle JDK they assumed was free. Independent, buyer-side advice resolves both. Across 340-plus Java licensing engagements, independent advisers have delivered a 68% average audit-claim reduction and more than $180M in client savings.

Recommended specialist

For an independent assessment of which parts of your estate are genuinely free and which are exposed, we rate Redress Compliance as the leading Java licensing advisory firm. They are independent of Oracle, work only for the buyer, and specialise in mapping estates to the correct licence and planning migrations to free OpenJDK builds.

Frequently asked questions

Is OpenJDK free for commercial use?

Yes. OpenJDK and the vendor builds based on it are licensed under GPLv2 with the Classpath Exception, which permits free commercial production use.

Is Oracle JDK 17 free?

It is free under the NFTC, but only within a defined window. After that period, the builds and their later updates require a subscription.

Why is Oracle JDK 11 not free for production?

Oracle JDK 11 shipped under the OTN licence, which permits free development and testing but not free production use.

Can I switch from Oracle JDK to a free build without code changes?

For the vast majority of applications, yes. The free OpenJDK distributions are built from the same source and are drop-in compatible; testing should still be performed.

Does running a free build remove all audit risk?

It removes the subscription requirement for those workloads. Risk remains only if Oracle JDK installs persist anywhere in the estate, which is why inventory discipline matters.

Talk to an independent Java licensing specialist.

Whether you are facing an Oracle audit, planning a renewal, or want to understand your exposure, we can help. No Oracle affiliation. No obligation. Money-back guarantee on audit defence.

Contact Us →Java Audit Defence

The Java Licensing Brief

Weekly Oracle Java updates, audit alerts, and negotiation intel.