ubuntu_install_java.sh 209 Bytes
Newer Older
1
set -o errexit -o nounset
2
apt-get update && apt-get install -y openjdk-8-jdk maven
3 4
test -d "/usr/lib/jvm/java-8-openjdk-amd64/jre"
echo "export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre" >> /etc/profile