Skip to content

Instantly share code, notes, and snippets.

@danjellesma
Last active January 1, 2016 22:49
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 danjellesma/8212033 to your computer and use it in GitHub Desktop.
Save danjellesma/8212033 to your computer and use it in GitHub Desktop.
Install Oracle Java 7 on Ubuntu 12.x / 13.x
First you need to remove openjdk for this run the following command from your terminal
sudo apt-get purge openjdk*
If you installed java 7 from any other PPA and you are having problem with java then you have to do following steps before installing the PPA menctioned here
sudo rm /var/lib/dpkg/info/oracle-java7-installer*
sudo apt-get purge oracle-java7-installer*
sudo rm /etc/apt/sources.list.d/*java*
sudo apt-get update
Install oracle java 7 in ubuntu 13.04/12.10/12.04
Open the terminal and run the following commands
sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update
sudo apt-get install oracle-java7-installer -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment