Last active
August 29, 2015 13:56
-
-
Save ssoto/2a47b484127dc5d96190 to your computer and use it in GitHub Desktop.
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
# add the ubuntu sources | |
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list | |
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 | |
#install the oracle java7 | |
apt-get update | |
apt-get install oracle-java7-installer | |
#update alternatives | |
update-alternatives --config java |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment