Install Oracle JDK 8 on a Debian based system.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get update && apt-get install -yq software-properties-common apt-utils | |
add-apt-repository ppa:webupd8team/java -y && apt-get update && \ | |
echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \ | |
echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections && \ | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C2518248EEA14886 && \ | |
apt-get install -y --no-install-recommends oracle-java8-installer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment