Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install Java on Ubuntu
# install the commando 'add-apt-repository'
apt-get install software-properties-common
# see:
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java8-installer
# JAVA_HOME is '/usr/lib/jvm/java-8-oracle/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment