Java (Eclipse Temurin) 17 LTS vs 21 LTS
Which should you run?
Pick Java (Eclipse Temurin) 21 LTS for new installs. It's supported until Dec 31, 2029, 2 years, 2 months longer than 17 LTS, which ends Oct 31, 2027.
17 LTS
21 LTS
20212029
Supported
Security fixes only
Today
| Java (Eclipse Temurin) 17 LTS | Java (Eclipse Temurin) 21 LTS | |
|---|---|---|
| Released | Sep 22, 2021 | Oct 10, 2023 |
| Status | Supported | Supported |
| Active support until | โ | โ |
| End of life | Oct 31, 2027 in 11 months | Dec 31, 2029 in 3 years |
| Total support | 6 years, 1 month | 6 years, 2 months |
| Latest version | 17.0.21+9 Oct 22, 2026 | 21.0.13+9 Oct 22, 2026 |
| LTS | Yes | Yes |
How to upgrade from Java (Eclipse Temurin) 17 LTS to 21 LTS
Ubuntu / Debian (Adoptium repository)
sudo apt update
sudo apt install temurin-21-jdk Windows
winget install EclipseAdoptium.Temurin.21.JDK Docker
docker pull eclipse-temurin:21 Official upgrade guide โ Back up first, and test on a non-production machine when you move to a new branch.
Quick answers
- Should I use Java (Eclipse Temurin) 17 LTS or 21 LTS?
- Pick Java (Eclipse Temurin) 21 LTS for new installs. It's supported until Dec 31, 2029, 2 years, 2 months longer than 17 LTS, which ends Oct 31, 2027.
- How long are Java (Eclipse Temurin) 17 LTS and 21 LTS supported?
- Java (Eclipse Temurin) 17 LTS: supported until Oct 31, 2027. Java (Eclipse Temurin) 21 LTS: supported until Dec 31, 2029.
- What are the latest Java (Eclipse Temurin) 17 LTS and 21 LTS versions?
- Java (Eclipse Temurin) 17 LTS is at 17.0.21+9 (Oct 22, 2026), and Java (Eclipse Temurin) 21 LTS is at 21.0.13+9 (Oct 22, 2026).
More Java (Eclipse Temurin) comparisons
Official release policy ยท Checked 2 hours ago