Skip to content

Instantly share code, notes, and snippets.

@hawkup
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hawkup/3f60546650d5e3f96824 to your computer and use it in GitHub Desktop.
Save hawkup/3f60546650d5e3f96824 to your computer and use it in GitHub Desktop.
Installing Java on Ubuntu 14.04

Install Java use PPA

  • install for apt-add-repository command
sudo apt-get install python-software-properties
  • then install java
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
  • set java environment path
export JAVA_HOME=/usr/lib/jvm/java-8-oracle/
export PATH=${PATH}:${JAVA_HOME}/bin

Reference: http://askubuntu.com/questions/521145/how-to-install-oracle-java-on-ubuntu-14-04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment