Change-Id: Icf490345e0d7fbc852ab7a665ca60d578fd3e9c4
echo "Info : Install additional Java version"
# INSTALL additional Java 11 and 12 while keep pointing alternatives to JDK8
-sudo cp -R /etc/alternatives /etc/keep-alternatives
sudo add-apt-repository -y ppa:openjdk-r/ppa
sudo apt-get update
sudo -H -E apt -y -q=3 install \
openjdk-11-jdk \
openjdk-12-jdk
-sudo rm -rf /etc/alternatives
-sudo mv /etc/keep-alternatives /etc/alternatives
+# set java 11 as default version
+sudo update-java-alternatives -s java-1.11.0-openjdk-amd64
java -version
echo "Info : Enable time sync"