We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f340b25 commit 3dedf89Copy full SHA for 3dedf89
index.sh
@@ -3,5 +3,6 @@
3
ROOT_PATH=$(dirname $BASH_SOURCE);
4
5
source $ROOT_PATH/modules/01-jenv.sh;
6
+source $ROOT_PATH/modules/02-yw-java.sh;
7
8
unset ROOT_PATH;
modules/02-yw-java.sh
@@ -0,0 +1,10 @@
1
+#!/usr/bin/env bash
2
+
+# if ubuntu
+# $ update-alternatives --list java
+# /usr/lib/jvm/java-17-openjdk-amd64/bin/java
+if [ -f /etc/lsb-release ]; then
+ export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
9
+ export PATH=$PATH:$JAVA_HOME/bin
10
+fi
0 commit comments