Choosing a JDK: distribution and version
Temurin, Corretto, Zulu, Oracle — the same code with different support. And what LTS buys you.
There is no single "download Java" button, and the first time you look there appear to be a dozen options that are all called the same thing. They mostly are the same thing. Here is what actually differs.
They are builds of the same source
OpenJDK is the reference implementation of the Java platform, developed in the open. Almost every distribution you can download is a build of that same source:
| Distribution | Who builds it | Notable for |
|---|---|---|
| Eclipse Temurin | Adoptium (Eclipse Foundation) | the common default; free, no account |
| Amazon Corretto | AWS | free long-term support, used on AWS |
| Azul Zulu | Azul | free builds plus commercial support |
| Microsoft Build of OpenJDK | Microsoft | Azure-flavoured |
| Oracle JDK | Oracle | free under the NFTC licence for current releases; licensing has changed more than once |
| GraalVM | Oracle | a different JIT, and ahead-of-time native images |
Except for GraalVM, choosing between these is closer to a procurement decision than a technical one. The code is the same; what differs is who patches it, for how long, and what the licence says.
LTS, and why 8, 11, 17, 21, 25
Since Java 9, a release appears every six months. Most are supported for six months — until the next one. Some are designated long-term support, and get years of security patches.
8 ── 11 ── 17 ── 21 ── 25 ── LTS, roughly every two years
9 10 12…16 18…20 22…24 six months eachProduction services sit on an LTS. The six-month releases are where you try what is coming, on something that is not paying your salary.
What that means when you pick a version:
- Learning? The LTS your target jobs run. Today that is overwhelmingly 8, 17 and 21, with 25 arriving.
- A new service? The newest LTS your libraries support.
- An existing service? Whatever it is on. Upgrading is a task, not a default.
This course teaches from a Java 8 baseline and marks everything later releases added. That is deliberate: most production Java is 8, 11 or 17, and a reader who knows what is baseline and what is an addition can work on any of them.
Reading a version string
openjdk version "21.0.12" 2026-07-21 LTS
OpenJDK Runtime Environment Temurin-21.0.12+8 (build 21.0.12+8-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.12+8 (build 21.0.12+8-LTS, mixed mode, sharing)Three lines, and each says something different:
- Line 1 — the platform version.
21is what matters;.0.12is the patch level, and the date is its release. - Line 2 — the runtime, and who built it.
Temurinhere. This is the line that answers "which distribution am I actually running". - Line 3 — the JVM.
64-Bit Server VMis HotSpot's server compiler.mixed modemeans it both interprets and compiles at run time.sharingmeans class data sharing is on.
Most people read the first line and stop. The second is the one that settles arguments.
JDK or JRE
A JDK contains the compiler and the tools. A JRE is only enough to run. You want a JDK — you are going to compile things, and the tools (javap, jcmd, jstack) are how you diagnose anything later.
For a production container the smaller runtime is worth having, and there is a better answer than a JRE: jlink builds a runtime containing exactly the modules your application uses. That is a deployment concern; for now, install a JDK.
Under the hood: what "a build of OpenJDK" actually means
OpenJDK is not just a promise — it is a specific, publicly hosted source tree (the OpenJDK project, released under the GPLv2 with the Classpath Exception), and every vendor row in the table above starts by taking that source and running it through their own build pipeline: their own compiler toolchain, their own packaging, their own choice of which platforms to publish for, and often their own backported bug fixes on top of the same baseline. What makes the result legitimately callable "Java SE 21", rather than merely "a program that looks like Java", is that a build has to pass the Java SE Technology Compatibility Kit (TCK) — a large conformance test suite maintained under the Java Community Process — before its vendor may claim compatibility and use the Java trademark for it. That is what "certified" means: not "reviewed for quality", but "tested against the platform specification and found to implement it correctly."
That certification is a floor, not a ceiling. The TCK checks correctness against the spec — the language behaves as specified, the standard library methods return what they are documented to return — and says nothing about performance, default garbage collector tuning, startup time, or which extra diagnostic tools a build ships beyond the minimum. Two certified, spec-compliant builds of the same version can still differ in exactly those respects, which is the real, narrow thing "which distribution" changes.
LTS itself is not part of the language specification either. There is no JSR that says "Java 21 gets patches until such-and-such date" — long-term support is a vendor's own commitment, made separately by each distributor, about how long they will keep backporting security fixes to a given major version. That is why support windows are not identical across vendors, and why "is this JDK still supported" is a question about who built it, not about the version number alone.
Try it yourself
Settle an argument about switching vendors
A colleague wants to switch a production service from Temurin to Corretto to save on a support contract, and says "it doesn't matter, they're both just OpenJDK." Using only what this lesson said, what part of that claim is solid, and what part still needs to be checked before shipping the switch?
What is guaranteed and what is not
The solid part: both are certified builds of the same OpenJDK source, so anything the TCK covers — the language semantics, the standard library's documented behavior — is guaranteed to match. That is a real guarantee, not marketing, and it is why the switch is plausible at all. The part that still needs checking is everything certification does not cover: default GC choice and tuning, JIT compilation thresholds, which diagnostic tools ship in the box, and each vendor's own patch and support calendar. None of that is standardized, so "it's just OpenJDK" is true for correctness and not a substitute for actually testing the switch — startup time, memory behavior under the service's real load, and whatever tooling the team's runbooks assume is present.
Misconceptions
- "Oracle JDK is the real one and the others are copies." They are all builds of OpenJDK, to which Oracle is the largest contributor. The differences are support and licensing.
- "Newer is better." Newer is better when your libraries, your build and your team are ready. An LTS you are not on yet is a project.
- "I need to match the version on the server exactly." Match the major version. Patch levels differ constantly and are meant to.
- "The TCK guarantees identical performance." It guarantees spec-conformance — the same documented behavior — not the same GC defaults, startup time or included tooling. Those are exactly where certified builds are still allowed to differ.
- "A vendor's JDK is their own fork." With the narrow exception of GraalVM's added JIT and native-image work, none of the vendors in the table maintain a diverging source tree — they build releases from the same shared OpenJDK repository.
Sources
- OpenJDK project (openjdk.org) — the shared source tree every distribution in this lesson builds from.
- The Java Community Process (JCP) — the Java SE Technology Compatibility Kit (TCK) and what compatibility certification actually checks.
- Eclipse Adoptium (Temurin) project documentation — a concrete example of a vendor build pipeline against the OpenJDK source.