Java (Eclipse Temurin) 17 LTS vs 21 LTS

Support windows, end-of-life dates and latest versions side by side.

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.

Java (Eclipse Temurin) 17 LTS Java (Eclipse Temurin) 21 LTS
ReleasedSep 22, 2021Oct 10, 2023
StatusSupportedSupported
Active support untilโ€”โ€”
End of lifeOct 31, 2027
in 11 months
Dec 31, 2029
in 3 years
Total support6 years, 1 month6 years, 2 months
Latest version17.0.21+9
Oct 22, 2026
21.0.13+9
Oct 22, 2026
LTSYesYes

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