Repository navigation
[JAVA] Move to JDK21 #14241
Description
Activity
- addedjavaPull requests that update Java codePull requests that update Java code
on Sep 24, 2026 Newer distros don't even ship Java 17 any more and custom repos are needed. Time to upgrade.
@andrijapanicsb
Java 21 has been already supported since @vishesh92 's PR #11546I also ran the smoke tests on Debian 13 against 4.23.0.0-RC3, and everything worked without any issues.
openjdk-17 is not available in Debian 13.
Thx @weizhouapache great - but did I read correctly this is for EL10 only? Does it support other OS-es (Debian 13,12) any other ?
Now I see tests passing on Suse 15, EL10 and you also mention Debian 13 - cool. Still question - do older OS-es (assuming manual installation might be required will also run Java21)?
Now I see tests passing on Suse 15, EL10 and you also mention Debian 13 - cool. Still question - do older OS-es (assuming manual installation might be required will also run Java21)?
IMO, users should be able to choose either Java 17 or Java 21. Both should work, including on older OS versions, as long as the chosen Java version is supported on that OS.
I've already running 4.22.1.0 here with Java21 (Managers and agents).
No problems so far.Rocky Linux 10.2
We are currently setting up a new cloudstack environment and decided to go for jdk 17 as this the only version mentioned as officially supported in the official cloudstack documentation.
We decided to use Rocky Linux 10 so we can`t use the default version from Rocky Linux 10.
Would love the see jdk 21 offically supported so there would be no need to use the extra adoptium repository for java.We are currently setting up a new cloudstack environment and decided to go for jdk 17 as this the only version mentioned as officially supported in the official cloudstack documentation.
We decided to use Rocky Linux 10 so we can`t use the default version from Rocky Linux 10.
Would love the see jdk 21 offically supported so there would be no need to use the extra adoptium repository for java.@la-wu
I think supporting JDK 21 officially should only require a documentation update. no code changes are needed.You can use JDK 21 with Rocky Linux 10.

The required feature described as a wish
CloudStack now runs on JDK 17, strict requirement.
JDK 17 is EoL this September (Oracle) and in less than a 1y with other "providers":
Vendor Support End Dates for OpenJDK 17
JDK25 is too cutting-edge and has a narrow ecosystem, so the recommended LTS to switch to is JDK 21.