-
Notifications
You must be signed in to change notification settings - Fork 0
/
jdk17.sh
executable file
·22 lines (18 loc) · 1.02 KB
/
jdk17.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# https://askubuntu.com/questions/740757/switch-between-multiple-java-versions
# https://stackoverflow.com/questions/49507160/how-to-install-jdk-10-under-ubuntu
# https://askubuntu.com/questions/534658/undo-update-alternatives
# https://askubuntu.com/questions/740757/switch-between-multiple-java-versions
# https://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/how-to-install-oracle-java-jdk-10-8-on-ubuntu-18-04-ubuntu-17-10.html
# https://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/how-to-install-oracle-java-jdk-10-8-on-ubuntu-18-04-ubuntu-17-10.html#ppa
# https://aboullaite.me/switching-between-java-versions-on-ubuntu-linux/
# Java 17
# https://jdk.java.net/17/
# https://keepgrowing.in/java/how-to-permanently-set-java_home-on-ubuntu/
# https://stackoverflow.com/questions/24641536/how-to-set-java-home-in-linux-for-all-users
# sudo update-java-alternatives -s java-17
export JAVA_HOME="${APPLICATIONS_HOME}/jdk-17.0.1"
export JAVA_BIN="${JAVA_HOME}/bin"
# Path
export PATH="${JAVA_BIN}:$PATH"
# displaying java version
java -version