100% independent. Rythium takes no fees, commissions or partnerships from any software or AI vendor. Ever.

Is Java Free? Which Oracle JDK Versions Are Free in 2026

The short answer: Is Java free? Oracle JDK 25 is free for everyone, including commercial production, for updates released through September 2028. Current updates of Oracle JDK 8, 11, 17 and 21 are not: since 20 October 2026, Java 21 updates are under Oracle’s OTN license, which needs a paid subscription for production. OpenJDK builds remain free.

In short

  • Whether Java is free depends on the update number as well as the version (Oracle JDK licensing FAQ, read 20 November 2026).
  • Oracle JDK 25 is under the Oracle No-Fee Terms and Conditions (NFTC) for all users, for releases through September 2028.
  • Oracle JDK 21 moved to the OTN license with update 21.0.13 on 20 October 2026. Oracle JDK 17 did the same with 17.0.13 in October 2024.
  • The OTN license is free for personal use, development, testing, prototyping and demonstrating. Production use needs the Java SE Universal Subscription.
  • OpenJDK builds, from Oracle or from vendors such as Eclipse Temurin and Amazon Corretto, carry no license fee.

Is Java free for commercial use?

Java is free for commercial use if you run the right build. Oracle publishes three licenses for its Java builds, and the one that applies is set by the update you install. The NFTC permits free use by any user, “even commercial and production use”, in Oracle’s words, and it covers Oracle JDK 25 today.

The OTN license covers current updates of Oracle JDK 8, 11, 17 and 21. It allows personal use, development, testing, prototyping and demonstrating at no cost, but running a business application in production on those updates needs a subscription.

The third license is the GNU General Public License with the Classpath Exception, which covers OpenJDK builds and lets you run them in production without paying anyone.

So a company can be fully licensed for free on Oracle JDK 25 or on OpenJDK, and out of compliance on Oracle JDK 21.0.13, even though both say “Java 21” on the server. The table shows where each version stands.

Java version License on current updates Free in production?
Oracle JDK 25 (long-term support) NFTC, for releases through September 2028; later updates planned under OTN Yes
Oracle JDK 26 to 28 (six-month releases) NFTC for each release’s whole six-month life Yes
Oracle JDK 21 OTN from 21.0.13 (20 October 2026); 21.0.12 and earlier were under the NFTC No, for 21.0.13 and later
Oracle JDK 17 OTN from 17.0.13 (October 2024); 17.0.12 and earlier were under the NFTC No, for 17.0.13 and later
Oracle JDK 11 OTN for every release No
Oracle JDK 8 OTN from 8u211 (April 2019) No, except personal use
OpenJDK builds (Oracle, Eclipse Temurin, Amazon Corretto and others) GPL version 2 with the Classpath Exception Yes

Is Java 21 still free?

Not on its latest updates. Oracle JDK 21 was released in September 2023 under the NFTC, and for three years every update was free in production. That ended with update 21.0.13 on 20 October 2026.

Oracle’s release notes call it “the first JDK 21 update release made available under the Oracle Technology Network License Agreement”, and warn that the OTN license “is substantially different” from the NFTC, so “other uses authorized under the NFTC may no longer be available”.

Oracle’s support roadmap, updated the same day, puts it plainly: Oracle JDK 21 releases from 20 October 2026 are under the OTN license, and users who want a free license “should move to Oracle JDK 25 or later”.

In practice, a server that applies the October 2026 security update to Oracle JDK 21 moves from free use to a use that needs the Java SE Universal Subscription. Updates 21.0.12 and earlier stay under the NFTC they were released with, but they no longer receive free security fixes.

Is Java 17 free?

Only on old updates. Oracle JDK 17 followed the same pattern two years earlier. Updates up to 17.0.12 were released under the NFTC and stay free to use under it.

From 17.0.13, released on 15 October 2024, Oracle JDK 17 updates are under the OTN license, so production use of current Java 17 needs a subscription.

Oracle’s Premier Support for Java 17 ran until September 2026, and its Extended Support runs to September 2029, with the Extended Support fee waived from October 2026, according to Oracle’s support roadmap.

For a company that wants to stay on Java 17 without paying Oracle, the route is an OpenJDK build of Java 17 from another vendor. Eclipse Temurin publishes Java 17 builds until at least October 2027, and Amazon plans updates to Corretto 17 until July 2029, with end of life in October 2029. Moving to Java 25 is the other free route, with the usual application testing.

Is Java 8 free?

For personal use, yes. For business use, only in old versions. Java 8 left Oracle’s free license first: Oracle JDK 8 updates from 8u211, released in April 2019, are under the OTN license, so using current Java 8 updates in production needs a subscription.

Oracle still provides free public updates of the Java 8 runtime to personal users through java.com, and Oracle’s roadmap says it will give at least 18 months’ notice before that ends. Releases from before 16 April 2019 were under the older Binary Code License, which Oracle no longer uses for new releases.

You may keep using a release under the license you downloaded it with, but Oracle’s FAQ says those older versions “are not updated with the latest security patches and are not recommended for use in production”.

Free, patched Java 8 is available from OpenJDK vendors: Eclipse Temurin until at least December 2030, and Amazon Corretto 8 until at least December 2030.

What does Oracle’s OTN license allow for free?

The OTN License Agreement for Java SE is not a production license, but it does allow several kinds of use at no cost. Oracle’s licensing FAQ lists them. You may use it for personal use on a desktop or laptop, such as running games or personal applications.

You may use it to develop, test, prototype and demonstrate applications, including with profilers, debuggers and development tools. You may use it with approved Oracle products listed in the license’s Schedule A and Schedule B, such as Oracle SQL Developer, and as an end user of an application built with those products.

You may also use it with identified Oracle Cloud Infrastructure products. Everything else, including running your own or a vendor’s business application in production, falls outside the free terms.

That is why developer laptops and test servers are rarely the problem in a Java review, and production servers and desktop images that carry Oracle JDK usually are.

Is OpenJDK free?

Yes. OpenJDK is the open source implementation of Java SE, and its builds are licensed under the GPL version 2 with the Classpath Exception, with no license fee for production use. Oracle says it has worked to make its own OpenJDK builds interchangeable with Oracle JDK.

The difference between OpenJDK builds is how long each vendor keeps patching a version. Oracle’s own OpenJDK builds at jdk.java.net receive updates for only six months: Oracle’s OpenJDK 25 builds stopped in January 2026, and the site marks superseded versions as no longer recommended for production. Other vendors patch long-term support versions for years.

Eclipse Temurin, from the Eclipse Adoptium project, publishes builds of Java 21 until at least December 2029 and Java 25 until at least September 2031. Amazon Corretto, which Amazon distributes under the GPL at no charge, plans updates to Corretto 21 until July 2030 and Corretto 25 until July 2032. Our comparison of OpenJDK vs Oracle JDK covers the differences in detail.

When is Oracle Java free inside other products?

Oracle Java can be free because of another license you already hold. If you have current support for an Oracle product that includes Java, Oracle’s FAQ says you may use the Oracle JDK or JRE with that product at no extra cost, for that product only.

Customers of a Schedule B product, such as Oracle Forms, can run the applications built with it, but must keep their commercial license for the product itself. Oracle Cloud Infrastructure customers are entitled to Oracle Java under the terms of their cloud services.

Java that another vendor bundles with its own application is often licensed through that vendor’s agreement, for use with that application, so check each vendor’s terms. Each of these rights stops at its product. Oracle JDK installed to run an Oracle product does not cover a separate in-house application on the same machine. Our guide to approved product use in Oracle Java covers each case.

Mistakes we find when companies think Java is free

  • Checking the version, not the update. Java 21.0.12 and Java 21.0.13 are under different licenses. A routine security patch moved Java 21 servers from free use to paid use in October 2026.
  • Trusting an internal Java count. Java hides. Developers install it, applications bundle it, middleware copies it onto servers and desktop images carry it along. Internal counts usually miss bundled copies and old versions, and they rarely separate Oracle JDK from OpenJDK builds that look the same.
  • Stretching product rights. Java that came with an Oracle product may be used with that product only.
  • Staying on an unpatched free update. It keeps you licensed, but without security fixes, which Oracle itself does not recommend for production.

How Rythium helps

Our Java license review finds every Java installation in your company, records the version, update and publisher of each, and shows which ones need a license and which are free. Most of our clients pay Oracle nothing for Java after the review.

If you do need Oracle Java, our guide to the Java SE Universal Subscription explains what you would buy, and Java license cost sets out the price list.

Questions we are asked about whether Java is free

Is Java 25 free?

Yes. Oracle JDK 25 is under the Oracle No-Fee Terms and Conditions, which allow free use by all users, including commercial and production use, for releases through September 2028. After that, Oracle plans to release further Java 25 updates under the OTN license.

What is the last free version of Java for commercial use?

Oracle JDK 25 is free for commercial use now. For older versions, the last updates under the free NFTC were 21.0.12 for Java 21 and 17.0.12 for Java 17. OpenJDK builds of every version are free.

Is Java free for personal use?

Yes. Oracle’s OTN license allows personal use of Oracle Java on a desktop or laptop at no cost, and personal users can download the Java 8 runtime from java.com.

Is the JDK free?

Oracle JDK 25 and every OpenJDK build are free to use in production. Current updates of Oracle JDK 8, 11, 17 and 21 are free only for development, testing, personal use and the other uses the OTN license allows.

Do I need a license to use Java at work?

Only if you run current updates of Oracle JDK 8, 11, 17 or 21 in production, outside the free uses above, such as an Oracle product that includes Java. In that case you need the Java SE Universal Subscription, which Oracle prices per employee.

About the author

Sheshagiri Anegondi

Managing Partner of Rythium Technologies. Nearly seventeen years at Oracle, from November 1997 to May 2014, in leadership roles including Vice President Sales, after Compaq and Digital Equipment Corporation.

Author of “Licensing Oracle: The Reference Manual for Managing Oracle License Compliance & Procuring Oracle Software, Hardware, Cloud & Services” (2021, ISBN 10: 1639046887).

More about Sheshagiri Anegondi

See more of our analysis in Google: add Rythium as a preferred source

Read next
  1. Oracle Java Audit: What Happens and How to RespondOracle Java audits explained: Oracle's audit rights, how Oracle finds Java users, what an audit costs on the employee metric, and how to respond.
  2. Oracle Java SE Universal Subscription: What It Covers and Who CountsThe Oracle Java SE Universal Subscription explained: what it includes, who counts as an employee, processor limits, price, renewal and when you need it.
  3. Effective Java License Management with Euladox SAM-As-A-ServiceOracle's Java metric changes and audit risks, and how Euladox discovery and SAM-as-a-Service find every Java installation and keep you compliant.
WhatsAppChat with an advisor

Cookie settings

Strictly necessaryKeep the site working and remember your cookie choice.
Always on