Skip to content

Instantly share code, notes, and snippets.

@mdsaleemj
Created October 14, 2015 13:29
Show Gist options
  • Save mdsaleemj/65377d8fabc7937ba2a7 to your computer and use it in GitHub Desktop.
Save mdsaleemj/65377d8fabc7937ba2a7 to your computer and use it in GitHub Desktop.
Installing JDK in Ubuntu 12.04
Hi,
I wanted to install the Oracle JDK in my ubuntu which already contains OpenJDK. Oracle doesn't official supports any repoistory
for ubuntu.
There are two possible ways now
1. Download and install JDK/JRE from Oracle manually.
2. Use PPA(Personal Package Archives) - This is not official and maintained by community and people say it as insecure.
So , for time being i chose to install via PPA
Source : https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get
http://askubuntu.com/questions/309900/installing-java-7-update-25-on-12-04-lts
For ubuntu > 12.04
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
//For Oracle JDK 7
sudo apt-get install oracle-java7-installer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment