Skip to content

[JAVA] Move to JDK21 #14241

Description

@andrijapanicsb

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

  • Oracle JDK 17: Premier Support ends on September 30, 2026 (with Extended Support running through September 30, 2029).
  • Microsoft Build of OpenJDK 17: Supported until September 30, 2027.
  • Eclipse Temurin (Adoptium): Supported until at least October 31, 2027.
  • Red Hat build of OpenJDK 17: Supported until December 31, 2027.

JDK25 is too cutting-edge and has a narrow ecosystem, so the recommended LTS to switch to is JDK 21.

Activity

  1. added this to the 25.0 milestone on Sep 24, 2026
  2. andrijapanicsb commented on Sep 24, 2026

    @andrijapanicsb
    ContributorAuthor

    Newer distros don't even ship Java 17 any more and custom repos are needed. Time to upgrade.

  3. weizhouapache commented on Sep 24, 2026

    @weizhouapache
    Member

    @andrijapanicsb
    Java 21 has been already supported since @vishesh92 's PR #11546

    I also ran the smoke tests on Debian 13 against 4.23.0.0-RC3, and everything worked without any issues.

    Image

    openjdk-17 is not available in Debian 13.

    cc @harikrishna-patnala

  4. weizhouapache commented on Sep 24, 2026

    @weizhouapache
    Member

    just checked a OL10 host, it also use java 21

    Image
  5. andrijapanicsb commented on Sep 24, 2026

    @andrijapanicsb
    ContributorAuthor

    Thx @weizhouapache great - but did I read correctly this is for EL10 only? Does it support other OS-es (Debian 13,12) any other ?

  6. andrijapanicsb commented on Sep 24, 2026

    @andrijapanicsb
    ContributorAuthor

    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)?

  7. weizhouapache commented on Sep 24, 2026

    @weizhouapache
    Member

    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.

  8. EduFrazao commented on Sep 28, 2026

    @EduFrazao

    I've already running 4.22.1.0 here with Java21 (Managers and agents).
    No problems so far.

    Rocky Linux 10.2

  9. la-wu commented on Sep 29, 2026

    @la-wu

    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.

  10. weizhouapache commented on Sep 29, 2026

    @weizhouapache
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

javaPull requests that update Java code

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions