OPERAMINI:-
1. First of all, your Ubuntu Linux should have Java Run-Time Environment (JRE). If your Ubuntu is not having that, then go ahead and install the same by typing below lines on terminal.
Type below line on terminal,
sudo add-apt-repository ‘deb http://archive.canonical.com/ lucid partner’
Now update the source list by typing this,
sudo apt-get update
Now install sun java packages by typing this,