Developer comparing Java runtime versions on a laptop screen
Java

Which Java versions are free? And which ones bill your whole headcount.

Four licences in seven years, each with a date attached. This is the version by version map of what Oracle actually gives away, what it charges for, and what to verify before you build a business case on it.

Contact Us Oracle Advisory
500+Enterprise clients
$2B+Under advisory
Industry Recognized
500+ Enterprise Clients
$2B+ Under Advisory
11 Vendor Practices
100% Buyer Side Independent

Java the language is free, OpenJDK is free, and every mainstream non Oracle build is free in production with no clock attached. What costs money is one vendor's build outside one licence window, and the price is set against your entire headcount rather than your Java usage.

Key takeaways

  • Four different licences have governed Oracle's Java in seven years: the Binary Code Licence, the Oracle Technology Network licence, the No Fee Terms and Conditions, and the GPL with Classpath Exception. Which one binds you depends on the exact build you downloaded and the day you downloaded it.
  • Java 8 stopped being free for commercial use at the April 2019 critical patch update. Update 8u202 in January 2019 was the last build a company could run in production at no cost.
  • Java 11 was never free from Oracle for production. It shipped under the Oracle Technology Network licence at general availability in September 2018, and that licence permits only personal and development use.
  • The JDK 17 free window closed in September 2024 after build 17.0.12. The JDK 21 window closes on 16 September 2026, and the July 2026 update was the last free one. JDK 25 runs free until September 2028.
  • Oracle's own free builds of OpenJDK carry no licence risk at all, but Oracle stops publishing updates for them roughly six months after release. Free to run is not the same as free to keep patched.
  • Personal use on a corporate laptop is not personal use. Oracle's own examples are homework and a personal tax return, not business accounting, and a developer machine that builds a production artifact is not covered by development use either.

The question sounds simple and the honest answer has a date attached to almost every part of it. Oracle has changed the licence terms on its Java builds three times since 2018, and each change applied to new downloads rather than to what you already had.

So the useful version of the question is not which Java is free. It is which build, at which patch level, downloaded on which date, under which licence, for which kind of use.

Which Java builds are free to use in production?

Every mainstream build except Oracle's own, and Oracle's own only inside a bounded window. The distinction is the licence file that shipped with the binary, not the version number on the box.

The four licences that have governed Oracle's Java

Each one grants a different set of rights, and all four are still live somewhere in a typical estate. Identify the licence before you argue about the version.

The four licences, what they allow, and where they still apply

Licence Applies to Commercial production use The catch
Binary Code LicenceOracle Java 8 up to and including 8u202, January 2019FreeClosed to new builds in April 2019, so the estate is frozen at an old patch level
Oracle Technology Network licenceJava 8 from 8u211, Java 11 through 16, and Java 17 from 17.0.13Not freePermits only personal use and development use, both narrowly defined
No Fee Terms and ConditionsOracle JDK 17 and later, from September 2021Free inside the windowThe window closes about a year after the next long term support release ships
GPL version 2 with Classpath ExceptionOpenJDK source and every mainstream build of it, including Oracle's ownFree, permanentlyOracle publishes updates to its own GPL builds for about six months per release

The builds that are free with no window at all

These are distributions of OpenJDK under the GPL with the Classpath Exception. There is no employee metric, no download log to reconcile and nothing for Oracle to audit.

  • Eclipse Temurin. The most common enterprise replacement, published by the Eclipse Foundation with long term support streams.
  • Amazon Corretto. Free with long term support, and already the runtime under most managed AWS services.
  • Azul Zulu builds, BellSoft Liberica, the Microsoft Build of OpenJDK, Red Hat build of OpenJDK, SAP SapMachine and Alibaba Dragonwell. All free to run, each with its own platform coverage and support window.
  • Your operating system vendor's package. A Red Hat or Ubuntu subscription usually already entitles you to a supported OpenJDK, which is the option people most often forget they own.

Choosing between them is a separate exercise, and the criteria that matter are support windows, platform coverage and patch cadence rather than price. The distribution choice guide covers how to write that as a standard.

Oracle's own free build, and why it is a treadmill

Oracle publishes GPL licensed builds of OpenJDK at jdk.java.net. They are genuinely free for any purpose, including commercial production, and they carry no subscription risk.

The catch is the update tail. Oracle stops publishing updates for these builds roughly six months after the release, when the next feature release ships.

An estate standardized on them has to move release to release every six months to stay patched. That is a valid strategy for a small, well automated estate and a poor one for anything else.

When does an Oracle JDK start costing money?

At a specific, published date per release. This is the map, and every row has a date because every row changed on one.

The version by version map, dated

Oracle JDK free commercial use, release by release, as at July 2026

Release Last free build for commercial use Free window ends Status today
Java 88u202April 2019 critical patch updateAny build from 8u211 onward needs a subscription
Java 11None from OracleNever openedOracle builds were paid from general availability in September 2018
Java 1717.0.12September 2024Closed. Builds from 17.0.13 carry the paid terms
Java 21The July 2026 update16 September 2026Closing. The next quarterly update is the paid one
Java 25Not yet reachedSeptember 2028Open. Free for commercial production use today
Non long term support releasesThe final update of eachAbout six months after releaseFree but unsuitable as an estate standard

What changes in September 2026

JDK 21 leaves the No Fee Terms on 16 September 2026, and the July 2026 quarterly update was the last free build. That makes this a live problem rather than a planning problem for anyone running Oracle JDK 21 in production.

The trap is the shape of it. Nothing breaks on 17 September, and nothing on your estate changes. The exposure only starts when someone applies the October critical patch update, which is the fix your security policy will require.

You therefore have two lawful positions after the window: run the July 2026 build unpatched, or stop running Oracle's build. Only one of those survives a security review.

Oracle does not need you to buy anything on the day the window shuts. It needs your security team to apply the next patch, which they will, because that is their job.

What to verify rather than assume

Every date above is a published Oracle position, and Oracle has revised its Java terms three times since 2018. Verify against the primary sources and keep the evidence.

  1. Read the licence file inside the build you actually run. The LICENSE file at the top of JAVA_HOME names the terms that shipped with that binary. That is the document that binds you, not the current web page.
  2. Check the current text of the No Fee Terms and Conditions and the Oracle Java SE support roadmap yourself, on the day you build the business case.
  3. Screenshot both with a visible date and store them with the migration file. Oracle's audit position keys off download records, and your counter evidence is the terms as they read when you downloaded.
  4. Record the download date and the downloading account for every Oracle build in the estate. If you cannot produce it, Oracle's log becomes the only version of the story.

What counts as personal use, and what counts as development use?

Both are narrower than the words suggest, and both are defined by Oracle rather than by ordinary English. This is where most accidental exposure is created, because the words sound generous.

Oracle's own examples of personal use

Oracle's Java licensing material gives worked examples, and they are usefully blunt. Running Java for homework or a personal tax return is personal use. Running it for business accounting is not.

The test is the purpose of the activity, not the ownership of the device or the identity of the person. A finance analyst using a Java based tool on a home computer for company work is commercial use.

Where development use stops

The Oracle Technology Network licence permits developing, testing, prototyping and demonstrating applications. It does not permit running the application for your own internal business operations.

  • Covered: writing code, running unit tests, building a prototype, demonstrating a product to a colleague or a customer.
  • Not covered: a build agent producing an artifact that ships to production, a staging environment that mirrors production for release validation, a performance test environment that exists to certify a production change.
  • Argued in every review: the developer laptop. Oracle's position in the reviews we have sat in is that a machine which exists to support a production system is not covered by development use.

That argument is winnable in places and expensive to lose everywhere. The safe answer is that development use is a licence for building the thing, not for running the business.

The corporate laptop question

A Java install on a company issued laptop is commercial use in every practical scenario, because the laptop exists for company work. The personal use grant does not travel with the person.

This matters more than it sounds, because desktop installs are the least governed part of most estates. They are also the easiest for Oracle to evidence, since the update check phones home.

Put your own numbers on this. The free Oracle calculator prices your processor vs Named User Plus position, VMware cluster exposure, Java SE employee tiers, and the 22 percent support line, then hands you a two page executive summary you can forward to your CFO. No account, no sales call. Run the Oracle calculator →

How do you find the installs that are not free?

By vendor and patch level, not by version number. A Java 8 install tells you nothing on its own, because 8u202 is free and 8u211 is not, and both report as version 1.8.

The four fields that decide each install

  1. Distributor. Read the IMPLEMENTOR field in the release file at the top of JAVA_HOME. Oracle Corporation is the only value that can create a licence question.
  2. Exact build number. Not the major version. 8u202 against 8u211, and 17.0.12 against 17.0.13, are the boundaries that decide the answer.
  3. Install date and installing account. This is what bounds a retroactive claim, and it is the field most estates cannot produce.
  4. Purpose of the host. Production, staging, build agent, or developer machine. The licence question differs for each, and only one of those categories has an argument attached.

Capture all four before you remove anything. Deleting a binary before you record its install date and patch level destroys the evidence that limits how far back a claim can reach.

Why the friendly email arrives when it does

Because Oracle can see the downloads. Update requests and downloads tied to your corporate domain are matched against subscription records, and the soft outreach that follows is the opening of an audit funnel.

The pattern is consistent enough to plan against. If your security team has been diligently patching Oracle Java 8 or Java 17 past the boundary builds above, assume Oracle already knows.

How do you get to a build that is free with no clock?

Standardize on one non Oracle HotSpot build, replace wave by wave, and close the door behind you. The runtime swap itself is rarely the hard part.

  • Pick one primary build and one fallback based on platform coverage and patch cadence, and write it as a specification rather than a brand preference.
  • Start with build agents, base images and developer machines, because that is where new Oracle installs are created and where the cleanup has to hold.
  • Block unmanaged Oracle downloads at the proxy so the estate cannot regrow the exposure while you are draining it.

The mechanics of the swap, including what genuinely differs between two builds of the same release, are set out in the Oracle Java versus OpenJDK binary comparison. The timeline and the governance gates are in the migration timeline guide.

What about applications certified on Oracle JDK only?

Isolate them and ask the vendor for a written position on a HotSpot OpenJDK build of the same release. In our file they were a small minority of workloads.

Remember what isolation does not fix. Because the subscription is priced per employee, one isolated Oracle workload still prices your whole workforce, so isolation buys time rather than money.

Where the common advice on free Java is wrong

The standard advice is to stay inside the No Fee Terms window and simply upgrade to each new long term support release as it lands, keeping Oracle's build for free forever. We disagree. In roughly 30 to 40 Java reviews Fredrik Filipsson advised in 2024 and 2025, not one client managed to move an entire estate inside a window on Oracle's schedule, because the window is set by Oracle and your change freeze calendar is not. What actually happens is that ninety percent of the estate moves, the last ten percent slips past the date, someone applies a patch, and the per employee subscription attaches to the whole workforce anyway. The free window is a real grant and a bad foundation. If you would not accept a supplier setting your upgrade calendar, do not accept this one.

Software inventory dashboard showing Java runtime versions across an estate
A Java 8 install reports its version as 1.8 whether it is free or licensable. Only the build number, 8u202 against 8u211, answers the question.

What the engagement data shows

Three cuts of the advisory engagement file frame the size of the problem and the size of the fix.

3 to 10x
Per employee cost vs workload value
3 to 9
Months to complete a typical migration
30 to 40
Java reviews advised 2024 to 2025

Source: Redress Compliance advisory engagement file, 2024 to 2025.

What should a buyer do next?

  1. Scan the estate this month and record four fields per install: distributor, exact build number, install date and host purpose.
  2. Sort the Oracle rows against the boundary builds. Anything past 8u202, any Oracle Java 11, anything past 17.0.12, and any Java 21 patched after July 2026 is a licensable position.
  3. Archive the licence text and download page as they read today, with a visible date, before you contact anyone.
  4. Put 16 September 2026 in the change calendar as a hard gate for any Oracle JDK 21 estate, and decide now which side of it you will be on.
  5. Standardize on one non Oracle HotSpot build and one fallback, written as a specification.
  6. Seal the intake points first: build agents, container base images and developer machines, then the proxy rule that blocks unmanaged Oracle downloads.
  7. Quantify the exposure before Oracle does. An independent Java licensing review maps versions, entitlements and the OpenJDK exit.
Cover of the Oracle Java Audit Defense 2026 white paper from Redress Compliance

White Paper · Oracle

Oracle Java Audit Defense 2026

Oracle now audits Java SE on employee count, not installs, which can multiply the bill several times over. Read it free.

Read the white paper
Need help? Try our AI agents. Ask the Oracle Java licensing AI agent → Scoped to one vendor and one problem. Runs in your browser.

Frequently asked questions

Which versions of Java are free in 2026?

OpenJDK and every mainstream build of it are free in production with no window, including Eclipse Temurin, Amazon Corretto, Azul Zulu builds, BellSoft Liberica and the Microsoft Build of OpenJDK. Oracle's own JDK is free only inside the No Fee Terms window, which currently covers JDK 25 until September 2028 and JDK 21 until 16 September 2026.

Is Java 8 still free?

Only up to update 8u202, released in January 2019. From the April 2019 critical patch update Oracle moved Java 8 to the Oracle Technology Network licence, and commercial users have needed a subscription for updates since then. Oracle continues to offer free Java 8 updates through java.com for personal and development users only.

Is Java 11 free?

Not from Oracle. Java 11 shipped under the Oracle Technology Network licence at general availability in September 2018, so Oracle's builds have never been free for commercial production use. OpenJDK builds of Java 11 from Temurin, Corretto, Zulu and others are free and always have been.

When does Oracle JDK 21 stop being free?

On 16 September 2026, and the July 2026 quarterly update was the last free build. Nothing breaks on that date, but the next security patch carries the paid terms, which is why the exposure usually starts with a routine patch rather than a decision.

Does personal use cover a work laptop?

No. Oracle's own examples of personal use are homework and a personal tax return, not business accounting, and a company issued laptop exists for company work. The personal use grant follows the purpose of the activity, not the ownership of the machine.

Are developer machines and test environments covered by the free development licence?

Partly, and less than most teams assume. The Oracle Technology Network licence covers developing, testing, prototyping and demonstrating applications, but not running an application for your own internal business operations. A build agent producing production artifacts and a staging environment used to certify releases both fall outside it in Oracle's reading.

Are Oracle's own OpenJDK builds free?

Yes, and permanently, because they ship under the GPL with the Classpath Exception. The limitation is not licensing but maintenance: Oracle stops publishing updates about six months after each release, so an estate standardized on them has to move release to release to stay patched.

Does one licensable Java install really cost the whole headcount?

Yes, because the Java SE Universal Subscription is priced per employee across the organization rather than per install or per user. One out of window Oracle install on one server prices your entire workforce, which is why partial cleanup delivers no saving at all. The mechanics are set out in the Oracle Java licensing pillar.

Free Download

The full Oracle Java Audit Defense Guide framework from the Oracle Advisory.

The Java audit funnel, the per employee metric, and the migration plan off paid builds.

Used across more than five hundred enterprise clients. Independent. Buyer side. Built for procurement leaders running the next renewal cycle.

Get the white paper →
Opens the white paper landing page. We only email you about this download.
Run a software spend health check against your Java estate in under five minutes.
Open the Tool →
3 to 10x
Per employee cost vs workload value
3 to 9
Months to complete a typical migration
30 to 40
Java reviews advised 2024 to 2025

One forgotten Oracle JDK install prices against your entire headcount. The inventory scan is the cheapest insurance in software.

Fredrik Filipsson
Co Founder and Group CEO. Ex Oracle, IBM, SAP.
Deep Library

More on this topic.

Oracle Advisory →
Open source code repository on a developer screen
Java
OpenJDK and the Alternatives
The free builds compared for enterprise use.
7 min read
Cloud services comparison dashboard
Java
Amazon Corretto vs OpenJDK
What Amazon's build adds and where it fits.
6 min read
Software release roadmap on a planning wall
Java
OpenJDK End of Life Roadmap 2026
Update windows and LTS timelines per release.
7 min read
Editorial boardroom interior

The advisor your vendors do not want.

500+ enterprise clients. 11 vendor practices. Industry recognized. One conversation can change what you pay for the next three years.

Stay ahead of Java licensing changes.

One buyer side briefing a week. Pricing moves, audit signals, and the levers that work. No vendor spin.

Pass it on

Know someone facing this exact decision?

Send this to whoever owns the renewal, the audit response, or the budget. It takes two clicks and it saves them a quarter of guessing.

Share on LinkedInShare by email