Skip to content

Conversation

jmtd
Copy link
Member

@jmtd jmtd commented Feb 18, 2025

The exact invocation has changed for RHEL10. This no longer works:

alternatives --set java java-21-openjdk.${_arch}

This works, but doesn't in earlier RHELs:

alternatives --set java /usr/lib/jvm/java-21-openjdk/bin/java

Some background in RHEL-68848

However, there is only one JDK in RHEL10 at the moment anyway, so simply avoid adjusting alternatives.

https://issues.redhat.com/browse/OPENJDK-3652

The exact invocation has changed for RHEL10. This no longer works:

    alternatives --set java java-21-openjdk.${_arch}

This works, but doesn't in earlier RHELs:

    alternatives --set java /usr/lib/jvm/java-21-openjdk/bin/java

Some background in RHEL-68848

However, there is only one JDK in RHEL10 at the moment anyway, so
simply avoid adjusting alternatives.

Signed-off-by: Jonathan Dowland <[email protected]>
@jmtd jmtd requested a review from sefroberg February 18, 2025 14:05
Copy link

@sefroberg sefroberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@jmtd jmtd merged commit 0fafb7f into rh-openjdk:ubi10 Feb 18, 2025
6 checks passed
@jmtd jmtd added the ubi10 RHEL UBI10 label Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ubi10 RHEL UBI10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants