Installing Oracle JDK/JRE 7 on ubuntu
If you have tried to install JDK via Ubuntu Software Center, It will show only OpenJDK/JRE. Oracle JDK is the most widely used development kit for java. Actually it is fairly easy to install the Oracle JDK on Ubuntu.
The guys at AskUbuntu have put up a fabulous response and it works without any issue.