-
Notifications
You must be signed in to change notification settings - Fork 0
/
openjdk8.sh
executable file
·21 lines (16 loc) · 894 Bytes
/
openjdk8.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# 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 11
# sudo update-java-alternatives -s java-11
export JAVA_HOME="${APPLICATIONS_HOME}/amazon-corretto-8.252.09.1-linux-x64"
export JAVA_BIN="${JAVA_HOME}/bin"
# Path
export PATH="${JAVA_BIN}:$PATH"
# displaying java version
java -version