Skip to content

Commit 0fafb7f

Browse files
authored
Merge pull request #548 from jmtd/3652-alternatives
[OPENJDK-3652] don't try to set alternatives for JDK
2 parents 7b635be + c05803f commit 0fafb7f

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)