Last active
November 13, 2018 08:37
-
-
Save james-s-tayler/71c8c5bcffc96bad5dfb to your computer and use it in GitHub Desktop.
Install oracle Java 8 on Ubuntu 14.04 and automatically accept the licence agreement. 100% hands-free install.
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 | |
sudo apt-get update | |
sudo apt-get install -y software-properties-common debconf-utils | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo apt-get update | |
sudo echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections | |
sudo apt-get install -y oracle-java8-installer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
worked for me perfectly