Skip to content

Commit c05803f

Browse files
committed
[OPENJDK-3652] don't try to set alternatives for JDK
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]>
1 parent 7b635be commit c05803f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

modules/jdk/21/configure.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ pushd ${ARTIFACTS_DIR}
1313
cp -pr * /
1414
popd
1515

16-
# Set this JDK as the alternative in use
17-
_arch="$(uname -i)"
18-
alternatives --set java java-21-openjdk.${_arch}
19-
alternatives --set javac java-21-openjdk.${_arch}
20-
alternatives --set java_sdk_openjdk java-21-openjdk.${_arch}
21-
alternatives --set jre_openjdk java-21-openjdk.${_arch}
22-
2316
# Update securerandom.source for quicker starts (must be done after removing jdk 8, or it will hit the wrong files)
2417
JAVA_SECURITY_FILE=/usr/lib/jvm/java/conf/security/java.security
2518
SECURERANDOM=securerandom.source

0 commit comments

Comments
 (0)