Skip to content

Commit c971581

Browse files
committed
Automatically set system java to our one
1 parent 33cc132 commit c971581

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/java.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ function java_install() {
106106
#############################
107107
# Perform maintenance tasks
108108
function java_postinstall() {
109+
update-alternatives --set "/usr/bin/java" "$JAVA_REAL_EXE"
110+
109111
echo "Output of 'java -version':"
110112
"$JAVA_REAL_EXE" -version
111113

0 commit comments

Comments
 (0)