Skip to content

Instantly share code, notes, and snippets.

@rusllonrails
Created March 15, 2014 16:30
Show Gist options
  • Save rusllonrails/9570040 to your computer and use it in GitHub Desktop.
Save rusllonrails/9570040 to your computer and use it in GitHub Desktop.
UBUNTU JAVA INSTALL
1) Enter these 2 commands in the Terminal to add this PPA and update your packages list:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
2) Enter one (or more) of these commands to install the proprietary Java(s) you require:
sudo apt-get install oracle-java6-installer
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java8-installer
3) When the respective Java installer script is loaded and then it downloads and installs the proprietary Java packages, you can also enter the following command to check the result of the installation:
java -version
You should then get a terminal output (for java8) like this:
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b54)
Java HotSpot(TM) Server VM (build 24.0-b21, mixed mode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment