JDK 21 can't install on centos 9 stream

Trying to install open jdk 21 on centos 9 : sudo yum install java-21-openjdk
I got his error: No match for argument: java-21-openjdk
Error: Unable to find a match: java-21-openjdk

Am I getting something wrong

This forum is for Rocky Linux, not for CentOS.

Try asking on the CentOS forums: https://forums.centos.org/ but it would suggest that package doesn’t exist. Try Java 17.

1 Like

I can see the package in Rocky 9.3
dnf list java-21-openjdk.x86_64

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.