Step 2:
open terminal and type the following (how to open terminal?)su -cd /home/**username**/Downloads (replace **username** with yours)rpm -ivh jre-7u11-linux-x64.rpm
you will see some few errors but its ok

Step 3:updatedblocate libnpjp2.so

copy the path of the libnpjp2.so file

Step 4a: (Firefox Users)

cd /home/user/.mozilla/plugins (replace user with your username)

ln -s path/of/libnpjp.so

Step 4b: (Chrome Users)

cd /opt/google/chrome/

mkdir plugins

cd plugins

ln -s path/of/libnpjp.so

Step 5:

Edit java control panel to allow unsigned java applet to run on your machine, open a terminal (non-root account) then type

cd /usr/java/jre1.7.0_51/bin/

. ControlPanel
follow the instructions on the picture below (click security, set to MEDIUM, press apply)

Step 6:

close and run your browser. visit other java websites to check your java installation. My java installation wont work in java's website. the circle loading thingy just wont stop loading, but try it on other websites instead. Check the browsers for permissions!