Java 17 to 21 LTS Runtime Migration Checklist
Rehearse a move from Java 17 to 21 with the current application artifact, explicit support terms, byte-level acceptance tests and a tested return to the prior runtime.
Printable checklist
Move a single application from Java 17 to Java 21 with a known artifact and a tested route back. Treat the JDK that builds the application and the JVM that serves requests as two independently recorded choices. An application can pass its normal build on one JDK while the image used by production contains another. The printable checklist follows both choices from the first inventory through a canary and a handoff to the team responsible for the next patch.
Pin the distribution and identify who supports it
Capture the vendor, exact release and architecture of the JVM running inside the deployed service. Record the base image digest or installed package version and the build pipeline that produced it. Repeat for the proposed Java 21 runtime. A floating image tag tells an investigator how the image was selected but cannot identify the binaries that handled yesterday's traffic. Keep both image digests in an accessible registry for the migration window and check that the rollback deployment can still pull its image.
Identify who will supply security updates and who can receive a support request for this installation. Record a published distribution policy or a contract reference, the deployment covered and the review date. Public builds, vendor subscriptions and application-server support can have different terms. Review the Java support and lifecycle calculator for how a known date or a lower bound affects a planning decision. Verify the particular Java 17 and 21 entitlement directly with the chosen vendor. Include the service owner when deciding how long the old runtime can remain available.
Capture a baseline that exercises the service
Choose the production artifact by digest and capture its usual launch command, JVM flags, resource limits and startup configuration. Record agents, native libraries, application server, certificates and timezone configuration. Reference secret locations through the normal deployment system so the evidence remains shareable. Test the old artifact on Java 17 in the rehearsal environment first. If that test already fails, repair or document the baseline before trying to attribute the same failure to a newer JDK.
Include the operations on which people depend. For a reporting service, generate a report from a fixed test account, send it through the normal queue and open the result with the downstream parser. For a service that renews credentials periodically, exercise that renewal with test credentials. Choose a sample with enough variation to reveal changed dates, ordering, number formatting or encoding. Save expected outputs, representative timing and the tolerance for a meaningful difference alongside the test input.
Start with the application you ship today
Launch the same artifact with Java 21 in an otherwise comparable environment. Record errors at startup separately from failures after warm-up. This sequence allows the team to attribute a regression to a changed runtime, dependency or build step as each is introduced. Check the effective process arguments inside the running instance. Container entrypoints and platform launchers can add flags after the application's own configuration has been read. Keep a reason and an owner beside each flag that needs to change.
Inspect libraries, build plugins, observability agents and native extensions for documented support for the proposed JDK. Use dependency analysis on the actual deployable artifact and review internal JDK dependencies it identifies. Static analysis will miss code paths reached through reflection or native calls, so exercise those paths with a representative job. If a dependency needs an upgrade, test that smaller change under Java 17 when the dependency supports both runtimes. Record any failures separately and keep the original dependency lockfile available.
Compare the bytes on durable interfaces
Check places where the service exchanges data with another system. Oracle's migration guide documents the change to UTF-8 as the default charset from JDK 18. A service that relied on an older environment's default can read an ASCII test file correctly while corrupting accented characters in a real import. Create test files with known bytes and an explicit description of their intended encoding. Compare parsed values and output bytes across both runtimes. Set the encoding at the interface wherever the file format defines it.
Test the opposite direction as well. Let Java 21 write a representative message or file and let the deployed Java 17 consumer read it. Do the same for other software that shares the interface. Record format versions, locale, timezone, certificates and the sample identifiers. A mismatch in a date exported at midnight may come from timezone configuration in a new base image. A failed outbound request may instead point to the trust material bundled with that image. Preserve that distinction when assigning the fix.
Decide whether the build should change in this release
A runtime migration can finish with the existing compilation target if the application works and the build remains supported. If the team wants Java 21 language features or bytecode, record that as a separate release decision. Set the compiler release target explicitly and inspect the resulting artifact under the oldest runtime expected to consume it. A worker, scheduled job or shared plugin may run outside the deployment group that received the first JVM upgrade. List these consumers before publishing the artifact to a shared repository.
Application-server replacements introduce another compatibility boundary. Review the Tomcat and Jetty comparison when selecting a servlet container, and check the exact branch's requirements against the application. A servlet namespace change or rewritten deployment descriptor deserves its own acceptance tests. Keeping the old server configuration with the rollback bundle lets the team restore a known combination of JVM, server and application even if the new deployment introduced an additional configuration file.
Rehearse the return path before the canary
Give a named operator the old image, application artifact and configuration and have them redeploy the old version in rehearsal. Route a test transaction through the restored service. Include records written during the Java 21 rehearsal so the test covers messages already in flight and data that outlives the deployment. If the previous service cannot read those records, agree on a compatibility change or a recovery procedure before allowing production writes. Record how long the exercise took and which permissions it required.
Start the production canary with an operation the team can verify end to end. Compare error rates, throughput, resource use and downstream acknowledgments against the same workload on Java 17. Wait for periodic jobs and long-lived connections relevant to this service. Define who may expand traffic and who can reverse it if an acceptance check fails. After the observation window, attach both build identifiers, test evidence and outstanding exceptions to the release ticket. Record the next patch owner and the date when the retained fallback can be removed.