Java Licensing

Which Java Versions Require a License

Whether a Java version requires an Oracle license depends on the licence terms attached to the specific build you downloaded, not the version number alone. Oracle JDK builds under the Oracle Technology Network terms need a paid subscription for production use, while OpenJDK builds and Oracle builds inside the No Fee window do not.

Which Java versions require an Oracle license?

An Oracle license is required when you run an Oracle JDK build whose licence terms call for one, which is decided by the terms on that specific download rather than by the version number you recognise. Oracle has shipped its JDK under more than one set of terms over the years, and the same major version can carry different obligations depending on the build and the date. The terms that matter are the Oracle Technology Network licence, which requires a paid subscription for production and other commercial use, and the No Fee Terms and Conditions licence, which permits production use free for a defined window. Reading the licence file inside the build is therefore the reliable test, and the version number is only a clue. The full mapping sits in the Oracle Java Licensing Guide.

What does the Oracle Technology Network licence require?

The Oracle Technology Network licence permits free use only for development, testing, prototyping, and demonstrating, and requires a paid subscription for production and commercial use. This is the licence that attached to Oracle JDK 8 updates after a certain date and to several later builds, and it is the one that produces most Java findings, because organisations downloaded an update for a security patch and kept running it in production without a subscription. The licence text is explicit that production use is not covered, so the exposure is not a grey area once you have identified the build. Where these builds run in production, a subscription is required for the period of that use.

The buyer move

Inventory by build and licence file, not by version number. Two servers both reporting the same major version can carry different obligations if they were downloaded under different terms, so the evidence that settles a Java question is the licence inside each installation, recorded with the download date.

Is any Oracle JDK free to run in production?

Oracle JDK builds released under the No Fee Terms and Conditions licence are free for production for a defined period, after which they move to terms that require a subscription. Oracle introduced the No Fee terms for JDK 17 and applied them to subsequent long term support releases, allowing free production use until a set number of years after the next long term support release ships. The catch is that the free window is time limited and tied to the release cadence, so a build that is free today can require a subscription later in its life without you changing anything. Tracking the end of each free window is part of staying compliant, which is why the licensing status is a moving target rather than a fixed label.

How the build and its terms decide the licensing position, indicative.
Build and termsProduction useSubscription needed?
Oracle JDK under OTN termsNot covered freeYes
Oracle JDK inside the No Fee windowFree for the windowNo, until the window ends
Oracle JDK after the No Fee windowRequires termsYes
OpenJDK or other GPL buildFreeNo

Does OpenJDK require a license?

OpenJDK builds are open source under the GPL and do not require an Oracle subscription, which makes them the standard route out of per employee exposure. Java SE is a specification, and OpenJDK is the open source reference implementation that several vendors package into supported, production ready distributions. Moving a workload from an Oracle JDK build to a comparable OpenJDK build removes the Oracle licence requirement for that workload entirely, rather than negotiating it down. The migration needs testing version by version, but it addresses the exposure at the root. The comparison of the supported distributions is in third party JDK options compared, and the relationship to the per employee metric is in legacy Java licenses versus the subscription.

What is the next step?

The next step is to inventory every Java installation by build and licence file, then sort each into requires a subscription, free for now, or free under the GPL. That inventory is the foundation for every later decision, because it tells you where you owe Oracle, where a free window is closing, and where a migration removes the exposure for good. Download the Java guide for the build by build licensing table and the inventory template that makes the sort repeatable.

Next step

Download the Java Exposure Assessment Kit for the build by build licensing table and the inventory template. Get it from the white paper library, or read the full Oracle Java Licensing Guide.

FAQ

Questions buyers ask.

Oracle JDK builds released under the Oracle Technology Network licence require a paid subscription for production and commercial use. The licence terms attached to the specific build you downloaded, not the version number alone, decide whether you owe Oracle.
Oracle JDK releases under the No Fee Terms and Conditions licence are free for production for a defined period after each release, then move to terms that require a subscription. The free window is time limited, so the same build can change status over its life.
OpenJDK builds are open source under the GPL and do not require an Oracle subscription. Moving qualifying workloads to OpenJDK or another supported distribution removes the per employee exposure at the root.
Download guide

Get the Java licensing guide.

The buyer side method for inventorying Java by build and licence file and sorting each install into what you owe and what you do not. Free with a work email.

The License Position, our weekly buyer side note, lands in your inbox when you download. New York and London. We never publish a public email address.

The License Position

Read Oracle's next move before they make it.

A short weekly note on Oracle audits, Java, ULAs and negotiation. One development, why it matters, and one move you can make this week.

New York and London. We never publish a public email address.