Oracle Java is the alternative to OpenJDK package, but is not longer available in Ubuntu repositories (due to some change in Java License). Oracle Java remains my choice because I find it to work better with some applications (specially java web applets).
If you want to give OpenJDK a try, view here instructions to install it.
“WebUpd8” team provides a PPA with one package that automatically downloads and installs Oracle Java JDK/JRE/Plugin 7 from its official website and installs it on your computer.
Install
Open a terminal window and run:
sudo apt-get update
sudo apt-get install oracle-java7-installer
