Last active
October 4, 2015 05:27
-
-
Save KalenAnson/579b2048cef0144ba440 to your computer and use it in GitHub Desktop.
Install Java 8 On Debian Jessie
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 | |
# ø | |
# Run this script as root | |
# Installs Java here: /usr/lib/jvm/java-8-oracle | |
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" > /etc/apt/sources.list.d/webupd8team-java.list | |
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list.d/webupd8team-java.list | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 | |
apt-get update | |
apt-get -y install oracle-java8-installer | |
java -version | |
type java | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment