Firstly download, tar.gz (32 tai 64bit)
Extract to the desktop of your computer
Make directory 'java' to opt folder, opt folder is in root.
In command line, write these, remember change java version! In my example I AM USING jre1.8.0_50
5. Lets add mozilla firefox add on plugin
and after this
Now update java home location, write into command "sudo gedit ~/.bashrc"
If you don't have gedit, write this too "sudo apt-get install gedit"
fi" and underneath that, add this