The short answer: OpenJDK vs Oracle JDK comes down to license, support and cost, not code. Oracle says its free OpenJDK builds and its commercial Oracle JDK builds are “based on the same code”. OpenJDK builds are under the GPL with no license fee. Current Oracle JDK 8, 11, 17 and 21 updates need Oracle’s paid subscription for production.
In short
- OpenJDK is the open source implementation of the Java platform. Oracle JDK is Oracle’s commercially licensed build of the same code (openjdk.org, read 20 November 2026).
- OpenJDK builds are licensed under the GPL version 2 with the Classpath Exception. You can run them in production without paying Oracle.
- Oracle JDK 25 is free for production under Oracle’s No-Fee Terms and Conditions for releases through September 2028. Current updates of Oracle JDK 8, 11, 17 and 21 are under the OTN license and need the Java SE Universal Subscription for production.
- The real choice between OpenJDK builds is who patches your version and for how long: Oracle’s own OpenJDK builds get six months of updates, while vendors such as Eclipse Temurin, Amazon Corretto and Microsoft patch long-term support versions for years.
Sheshagiri Anegondi
The Java Tax: Why Oracle’s New Pricing is Costing You Millions
What the Java tax is, how Oracle's per-employee pricing works, and why large companies overpay without noticing.
Short · 0:29Watch on YouTube
OpenJDK vs Oracle JDK: What are the differences?
The code is not the difference. OpenJDK is the open source project where the Java platform is developed, and Oracle builds both its free OpenJDK binaries and its commercial Oracle JDK binaries from it. The openjdk.org home page describes Oracle’s commercially licensed JDK binaries as “based on the same code” as its free, GPL-licensed ones.
The differences sit around the code. The first is the license: OpenJDK builds are under the GPL with the Classpath Exception, while Oracle JDK comes under Oracle’s own licenses, which are free for production on Oracle JDK 25 and not on current updates of Oracle JDK 8, 11, 17 and 21.
The second is support and updates: an OpenJDK build is patched by whoever publishes it, for as long as they choose, while Oracle JDK is patched by Oracle, with long-term support for subscribers. The third is cost, which follows from the license. The table sets the differences out.
| Point | OpenJDK builds | Oracle JDK |
|---|---|---|
| Code | The OpenJDK project | Oracle’s build of the same code |
| Who publishes it | Oracle (jdk.java.net), Eclipse Adoptium (Temurin), Amazon (Corretto), Microsoft and other vendors | Oracle |
| License | GPL version 2 with the Classpath Exception | Oracle No-Fee Terms and Conditions (Oracle JDK 25) or the OTN license (current Oracle JDK 8, 11, 17 and 21) |
| Cost in production | No license fee; paid support is optional from some vendors | Free on Oracle JDK 25 for releases through September 2028; otherwise the Java SE Universal Subscription, priced per employee |
| Updates | Set by the publisher: six months for Oracle’s own builds, years for long-term support builds from other vendors | Quarterly patches for supported versions; long-term support versions get at least eight years of support for subscribers |
| Extras | Depend on the vendor | With the subscription: Java Management Service, the Enterprise Performance Pack for Java 8, triage support for third-party Java |
Are Oracle JDK and OpenJDK the same?
In code, close to it; in license, no. Oracle’s own statements are the best evidence. The openjdk.org home page says Oracle’s commercial JDK binaries are “based on the same code” as its GPL-licensed OpenJDK binaries, and Oracle’s Java SE Universal Subscription FAQ says Oracle “has been working to make it interchangeable with Oracle JDK”, referring to its OpenJDK builds.
Amazon certifies Corretto with the Java Technology Compatibility Kit to show it meets the Java SE standard, and Oracle says the same of its own updates. What is not the same is the paperwork.
In our experience OpenJDK builds are functionally equivalent to Oracle JDK for almost all applications, but only the Oracle build brings the Java SE Universal Subscription into play.
The practical exceptions are applications whose vendors certify or support only Oracle JDK, and features that Oracle ships only to subscribers, such as the Enterprise Performance Pack for Java 8.
Is OpenJDK owned by Oracle?
Oracle leads it but does not own it in the way it owns Oracle JDK. OpenJDK is an open source project, and Oracle’s licensing FAQ describes Oracle as stewarding the OpenJDK community.
The code is published under the GPL version 2 with the Classpath Exception, so anyone may build, use and distribute it under that license, and many companies do. Microsoft’s documentation describes the project as governed by Oracle and releases its own build under the same GPL license.
Java and OpenJDK are trademarks of Oracle, and vendors give their builds their own names, such as Eclipse Temurin, Amazon Corretto and the Microsoft Build of OpenJDK. For licensing, the point that matters is that none of these builds is under an Oracle commercial license.
Running Eclipse Temurin or Amazon Corretto in production does not create an obligation to Oracle, however many employees your company has, because the Java SE Universal Subscription applies to Oracle’s programs only.
Is OpenJDK still free?
Yes. The OpenJDK license has not changed, and Oracle’s 2023 and 2026 licensing changes apply to Oracle JDK, not to OpenJDK builds. What varies is how long each build is patched, because running Java in production without security updates is a risk of its own.
Oracle publishes free OpenJDK builds at jdk.java.net, but only for six months per version: its OpenJDK 25 builds ran through January 2026, and the site marks superseded versions as no longer recommended for production. Other vendors patch long-term support versions for years, free of charge.
Eclipse Temurin publishes Java 21 until at least December 2029 and Java 25 until at least September 2031. Amazon plans Corretto 21 updates until July 2030 and Corretto 25 until July 2032. Microsoft’s earliest end-of-support dates are September 2028 for its Java 21 build and September 2030 for Java 25, with free quarterly updates. Our guide to whether Java is free covers Oracle’s own versions.
| Free OpenJDK build | Java 21 updates until | Java 25 updates until |
|---|---|---|
| Oracle OpenJDK (jdk.java.net) | January 2024 | January 2026 |
| Eclipse Temurin (Adoptium) | At least December 2029 | At least September 2031 |
| Amazon Corretto | July 2030 (last planned update) | July 2032 (last planned update) |
| Microsoft Build of OpenJDK | September 2028 at the earliest | September 2030 at the earliest |
Which JDK is best for production?
For most companies, a long-term support OpenJDK build from a vendor that keeps patching your version. It costs nothing in licenses, it runs the same code, and it removes the employee-count question entirely.
The choice between Temurin, Corretto, Microsoft’s build and the others is mostly about update length on your Java version, the platforms you run and whether you want paid support from the same vendor.
Oracle JDK is the right choice in three cases: when you run Oracle JDK 25 and accept moving on before its free period ends in September 2028; when an application vendor certifies or supports only Oracle JDK; and when you already pay for the Java SE Universal Subscription and use what it includes, such as the Enterprise Performance Pack for Java 8 or Oracle’s support.
Watch for a fourth case that nobody chooses: Oracle JDK that arrives with a developer’s download, an installer or a desktop image. Internal Java counts usually miss these copies.
Does OpenJDK perform differently from Oracle JDK?
Oracle says the two are built from the same code, so for the same version and update there is no reason to expect a difference. When someone reports one, check first whether they compared different versions, such as Java 8 against Java 17, or different garbage collector and memory settings.
Oracle’s own data sheet makes the point indirectly: its Enterprise Performance Pack exists to bring “JDK 17 JVM performance enhancements to Java SE 8 workloads”, which is a version difference that subscribers can buy for Java 8.
Moving from Oracle JDK 8 to an OpenJDK build of Java 8 keeps Java 8 performance, and moving to a newer OpenJDK version gives the newer version’s performance at no license cost, after the usual testing. Test your own applications on the build you choose, with your production settings, before you switch.
That test matters more than any general benchmark, because application behaviour depends on the version, the settings and the libraries, not on the build alone.
How to choose between OpenJDK and Oracle JDK
- List where Java runs, which version and update each system uses, and who installed it.
- Check what your application vendors certify. Some certify only Oracle JDK, and some bundle and license Java themselves.
- Decide who will supply updates for each version, and for how long.
- Compare the total cost with Oracle’s per-employee price for your headcount.
What a move to OpenJDK looked like for one client
A manufacturer with 8,000 employees came to us with an Oracle quote of US$1,010,000 a year on the employee metric. A scan found Oracle JDK on 61 servers supporting three applications. Everything else, 92% of the estate, moved to OpenJDK builds on a managed migration plan.
The servers that still needed Oracle Java got a subscription scoped to them, at US$140,000 a year, and a Java governance policy now stops the Oracle footprint from growing back. The full story is in our Oracle Java case study.
Other clients are making the same choice in their buying rules. We see requests for proposals that require applications to be certified on OpenJDK and other non-Oracle Java builds, and requests to use Oracle Java going up to the CIO and legal counsel.
How Rythium helps
Our Java license review finds every Java installation, tells Oracle JDK apart from OpenJDK builds that look the same, and shows which installations need a license. For the cost of staying on Oracle JDK, see Java license cost, and for the vendors and builds to move to, see Oracle Java alternatives.
Questions we are asked about OpenJDK and Oracle JDK
Is Oracle JDK free for commercial use?
Only some versions. Oracle JDK 25 is free under the No-Fee Terms and Conditions for releases through September 2028. Oracle JDK 17 updates from 17.0.13 and Oracle JDK 21 updates from 21.0.13 need a subscription for production use.
Is Microsoft’s OpenJDK different from Oracle JDK?
The Microsoft Build of OpenJDK is Microsoft’s build of the OpenJDK code, released under the GPL version 2 with the Classpath Exception and free of charge. It is not under Oracle’s license terms, so running it does not need an Oracle subscription.
Does OpenJDK require a license?
It requires no paid license. OpenJDK builds come under the GPL version 2 with the Classpath Exception, which allows use in production at no cost. You still need a plan for security updates, which come from the publisher of your build.
Can we switch from Oracle JDK to OpenJDK without changing our applications?
For most applications, yes, on the same Java version, because the builds come from the same code. Check first with vendors who certify only Oracle JDK, and test with your production settings.
See more of our analysis in Google: add Rythium as a preferred source
