Download Java 21 LTS
Free Java 21 JDK downloads for Windows, macOS (Apple Silicon and Intel) and Linux, from every trusted OpenJDK vendor. Released September 2023. All downloads go to the official vendor page.
Key features introduced in Java 21: Virtual threads (Project Loom), pattern matching in switch, sequenced collections, record patterns, string templates (preview).
Java 21 β Eclipse Temurin
Java 21 β Microsoft
Java 21 β Amazon Corretto
Java 21 β Azul Zulu
Java 21 β Oracle
β Oracle JDK requires a paid subscription for commercial production use. For free production use, pick Eclipse Temurin, Microsoft, Amazon Corretto or Azul Zulu above.
After you download Java 21
- Run the installer (
.msion Windows,.pkgon macOS) or extract the tarball (.tar.gzon Linux). - On Windows, make sure "Add to PATH" and "Set JAVA_HOME" are checked during install.
- Open a new terminal (the old one won't see the updated PATH).
- Verify:
java -version # expected: openjdk version "21.x.x"
Detailed per-OS install guides:
Should I pick Java 21?
Yes, for most new projects. Java 21 LTS is the sweet spot in 2026 β it adds virtual threads, pattern matching in switch, and sequenced collections, while being supported by Spring Boot 3.x, Quarkus, Micronaut, and every major framework. Free support through at least 2029 from Temurin.
Related downloads
- Download Java 17 LTS β widely deployed LTS
- Download Java 25 LTS β newest LTS (2025)
- Download Java 11 LTS β legacy LTS
- Download Java 8 β still heavily deployed
- All Java downloads