JDK 24 and JDK 25 are neighbours in the release list, but they sit on opposite sides of the support line. JDK 24 was a six-month feature release, also called a non-LTS or short-term release, whose support ended in September 2025. JDK 25 is the long-term support (LTS) release that replaced it. If a service, container image, or library still names JDK 24, the useful question is not which release has more features. It is whether production can stay on a runtime with no patch stream, and what it takes to move to JDK 25 without losing the ability to test against 24.
Table of Contents
- The 2026 support timeline at a glance
- What staying on JDK 24 actually costs
- No more security patches
- Archived builds and a shrinking toolchain
- Class-file major 68 and backward compatibility
- Legitimate reasons to keep JDK 24
- What changes when you move to JDK 25
- Finalized features versus previews
- Removals and behavior changes to test
- Migration checklist: production on 25, a test lane on 24
- Decision table: new projects, existing services, libraries
- Conclusion
The 2026 support timeline at a glance
Java's release model is time-based: a feature release every six months, with one release every two years designated as long-term support. Adoptium, which builds Eclipse Temurin, describes that cadence and commits to supporting LTS releases for at least four years. Oracle's Java SE support roadmap, updated in October 2026, applies the same split to Oracle JDK: non-LTS releases are superseded by the next feature release, while LTS releases get a Premier Support period and an Extended Support period.
| Release | Type | GA | Support | Status in late 2026 |
|---|---|---|---|---|
| JDK 24 | Non-LTS | March 2025 | Premier ended September 2025; no Extended Support | Unsupported; final update 24.0.2 |
| JDK 25 | LTS | September 2025 | Premier to September 2030; Extended to September 2033 | Production baseline |
| JDK 26 | Non-LTS | March 2026 | Premier ended September 2026 | Superseded |
| JDK 27 | Non-LTS | September 2026 | Premier to March 2027 | Current feature release |
| JDK 29 | LTS (planned) | September 2027 | Premier to 2032; Extended to 2035 | Next long-term target |
JDK 24's Premier Support ended in September 2025, and the roadmap lists no Extended Support for the 22–24 range, so there is no paid patch window to fall back on. JDK 25 has Premier Support through September 2030 and Extended Support through September 2033. The next LTS is planned for September 2027 as JDK 29. The same roadmap notes that Oracle JDK 25 is free to use for all users, with update releases after September 2028 planned under the OTN licence; the 2030 and 2033 dates describe commercial support, not the free-update window.
The calendar has also moved on. By November 2026, JDK 26 and JDK 27 have both shipped, and JDK 27 is the current feature release. That does not make JDK 25 outdated; it makes it the newest release with a long support runway. JDK 27 will itself be superseded in March 2027. For production, the meaningful comparison is supported versus unsupported, not newest versus oldest. A team with a disciplined six-month upgrade cadence can run the current non-LTS release, but that is a different operating model from choosing a long-term baseline.
What staying on JDK 24 actually costs
No more security patches
The final JDK 24 update was 24.0.2, released on July 15, 2025. Its release notes say the build is not recommended for use after the next critical patch update, scheduled for October 21, 2025. After that, fixes for security vulnerabilities were published in later release families, not in 24. The roadmap's row for releases 22–24 confirms there is no Extended Support period, only indefinite Sustaining Support.
Staying on 24 means owning every future vulnerability yourself: watching advisories, deciding whether a finding affects your code, and backporting or mitigating without an upstream binary. That is a recurring operational cost, not a one-time migration cost. It also weakens the answer you can give customers or auditors when they ask which supported runtime you use.
Archived builds and a shrinking toolchain
Oracle still publishes 24.0.2 on its Java SE 24 archive, but the page is blunt: older JDK versions "are not updated with the latest security patches and are not recommended for use in production." The pattern is repeated by vendors. Adoptium's support table marks Java 24 as end-of-service life in September 2025, with no further Temurin builds planned.
Archived builds remain easy to download, which is exactly the risk. An old base image, a cached CI toolchain, or a developer laptop can keep 24 alive long after the team believes it has upgraded. If you keep the runtime, keep it deliberately and label it as unsupported.
Class-file major 68 and backward compatibility
Every class file records the release that produced it. The ClassFile API documentation lists 68 as the class-file major version introduced by Java SE 24 and 69 as the version introduced by Java SE 25. A JDK 25 JVM can load class files with major 68, so moving the runtime before rebuilding is usually safe, provided the code does not depend on APIs removed in 25. The reverse is not true: a JDK 24 runtime cannot load a class file compiled for 25.
Class-file 68 also sets a floor for consumers if you publish libraries. An artifact targeted at 24 cannot be used by anyone still on JDK 21, 22, or 23. If you keep building for 24, you are certifying against a runtime that receives no fixes, and you are carrying a compatibility obligation that your own production no longer needs.
Legitimate reasons to keep JDK 24
A JDK 24 install is still the right tool in several situations. None of them requires serving production traffic.
- Reproducing a release-specific bug. A defect reported against the March 2025 release may not reproduce on 25. Keeping 24 available lets you confirm the report on the exact runtime before deciding whether it is fixed or still present.
- Testing a pinned dependency. A framework or library may declare JDK 24 as its tested maximum. Running its suite on 24 tells you whether an upgrade is safe; running production there does not.
- Differential testing during migration. Running the same suite on 24 and 25 and comparing results is one of the cheapest ways to catch behavior changes before a canary.
- Building for consumers who have not moved. If downstream users still run 24, you can compile a 24-targeted artifact while building and testing your own service on 25.
- A contractually pinned environment. A customer or appliance that must stay on 24 is a legitimate exception, provided it is isolated, not internet-facing, and has a documented exit date.
Foojay's round-up of which JDK teams run found that the real blockers are frameworks, libraries, and compatibility validation, not Java itself: when a team says it cannot upgrade, it usually means it has not finished checking its dependencies. That is an argument for planning the work, not for treating 24 as a production baseline. The same discussion draws a useful line between "LTS only" and "supported": an LTS label without a patch process is not protection.
What changes when you move to JDK 25
Moving from 24 to 25 is a smaller step than moving from 21 to 25, because the changes from JDK 22, 23, and 24 are already in your code. Microsoft's guide to moving to Java 25 notes that code built with an older JDK can usually run on 25 without recompilation, while warning about removed APIs, deprecated packages, internal API use, and changed GC defaults. For a team already on 24, the practical risk concentrates in three places: preview features, removed platform support, and packaging.
Finalized features versus previews
A preview feature is complete enough to use but is not yet a permanent part of the platform, so its API can still change; an incubator feature ships in a separate module and may never be promoted. The JDK 25 project page lists the release's JEPs. Scoped Values, Module Import Declarations, Flexible Constructor Bodies, and Compact Source Files and Instance Main Methods are completed features. Structured Concurrency is a fifth preview, Primitive Types in Patterns is a third preview, Stable Values is a preview, and the Vector API is a tenth incubator. Compact Object Headers and Generational Shenandoah also ship in 25 as product features.
If your JDK 24 build used --enable-preview, rebuild from source on 25 and rerun the tests. A feature that was a preview in 24 may now be final, still a preview with a different API, or removed. Do not carry the flag forward out of habit; decide for each use whether the API is stable enough for production. Finalized features can also change in small ways during finalization, so verify behavior rather than assuming source compatibility.
Removals and behavior changes to test
JDK 25 removes the 32-bit x86 port. If a service still ships 32-bit native libraries or runs on 32-bit base images, it cannot move as-is. JDK 24 had already deprecated that port, which makes 25 the release where the deprecation becomes real.
Packaging needs its own check. The JDK 24.0.2 release notes record that, starting with JDK 25, jpackage no longer includes service bindings by default in the run-time images it creates; the previous behavior requires adding --bind-services to the jlink options. If you build installers with jpackage, compare the module set before and after.
Then run the ordinary upgrade checks: removed APIs, agents and instrumentation, internal API access, and JVM flags tuned for an older release. Treat stale JVM flags as a migration item rather than something to copy forward. None of this is specific to 24 versus 25, but it is where an otherwise routine move tends to fail.
Migration checklist: production on 25, a test lane on 24
The aim is to move production to 25 without losing the ability to prove that 24 still behaves as expected. Treat 24 as a test lane, not a second production platform.
- Inventory every runtime. Search container base images, CI configuration, build toolchains, launch scripts, and developer setup docs for 24. Record which uses are build-time only and which serve traffic. Also list every
--enable-previewflag andjpackageinvocation. - Set the baseline and the patch process. Make JDK 25 the production standard and pin an exact update. Confirm the licensing position with whoever owns procurement: Oracle's roadmap says Oracle JDK 25 is free to use for all users, with updates after September 2028 planned under the OTN licence.
- Build and test everything on 25. Run unit, integration, and contract suites, then a canary with production-like traffic. Compare latency, heap use, GC pauses, and startup with the 24 baseline. JDK 25's compact object headers and ahead-of-time command-line improvements can reduce footprint and warmup, but measure rather than assume.
- Choose the class-file target for libraries. If consumers still need 24, publish a 24-targeted variant while testing on 25. If you control the consumers, move the target to 25 and stop producing major version 68.
- Stand up the compatibility lane. The lane needs its own runtime only when you must execute 24 bytecode or compare runtime behavior. A step-by-step guide to installing JDK 24 covers Windows, macOS, and Linux installs and shows how to verify the result. Keep the lane off the production network, pin 24.0.2, and run it from CI or an isolated debugging environment.
- Give the lane an end date. Tie removal to the last consumer, test, or bug that needs major version 68. Then delete the archive from CI and from onboarding docs. An exception without an expiry date becomes the next legacy platform.
Decision table: new projects, existing services, libraries
Use the table as a starting point, then override it with your own support obligations.
| Situation | Production on JDK 25? | Role for JDK 24 |
|---|---|---|
| New project, no vendor constraint | Yes, start on 25 | None |
| Existing service on 24 | Yes, after tests and a canary | Short-lived compatibility lane |
| Library or open-source artifact | Build and test on 25 | Compile a 68 variant only while consumers need it |
| Customer or regulator pins 24 | Not yet; treat as an exception | Isolated, non-public, documented exit date |
| Reproducing a 24-only bug | No | Local or CI only, archived 24.0.2, time-boxed |
The table assumes you can choose. If a framework or vendor supports only JDK 21, follow the vendor and keep 24 out of production; framework support, not personal preference, often sets the pace. The point of comparing JDK 24 with JDK 25 is not that 25 wins on features. It is that 24 has no patch stream and 25 has a long one.
Conclusion
JDK 24 vs JDK 25 in production is a support-boundary decision, not a feature contest. JDK 24's last update shipped in July 2025, its Premier Support ended that September, and there is no Extended Support to buy; archived builds are explicitly not recommended for production. JDK 25 is the LTS baseline, with Oracle Extended Support to September 2033 and vendor support of similar length, and the next LTS is planned for 2027. Keep JDK 24 only where it earns its place — reproducing a specific bug, testing a pinned dependency, or validating a migration — and give that lane an end date. Production belongs on JDK 25.
