web.onassar.com Archive

I can be reached at onassar@gmail.com.

For my open source work, check out github.com/onassar

Installing Java on Ubuntu 12.04

View more posts

Quick post.
Needed to install java on my Ubuntu 12.04 server. After some searching and copy/pasting, I came up with the following software installs.

sudo apt-get install software-properties-common
sudo apt-get update && sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo reboot

Now, man java gives you everything you'd hope for, and you can be clear of sudo: add-apt-repository: command not found :)