Friday 19 August 2016

Enable Java run time plugin in Firefox

Due to security reasons, Firefox blocks java plugin by default. In this, I will show you how to install java and enable java plugin in Firefox.
*I am using Fedora 24. You can follow the same steps in any Linux distro.

1. Go to https://java.com/en/download/linux_manual.jsp and download the java RPM file. Here I am downloading Linux X64 RPM file.

2. Install the following RPM file
#rpm -ivh jre-8u101-linux-x64.rpm


3.  Adding the plugin to Firefox
#ln -sf /usr/java/jre1.8.0_101/lib/amd64/libnpjp2.so /usr/lib64/mozilla/plugins/

4. Launch java control panel by using the following command
#/usr/java/jre1.8.0_101/bin/jcontrol

In this dialog box, choose 'Edit Site List' and add the websites that you want to allow java runtime in the web browser.

5. Add those websites in .java/deployment/security/exception.sites as well. That's all! Now you will be able to run the java runtime in your browser.

6. Go on and verify java runtime environment in firefox.

Go to https://www.java.com/verify and click "Verify Java version". It will detect the java plugin and will report you.

Just click 'Run' and it will allow the java plugin to run.

7. Alternatively you can also install javaws
#dnf install -y javaws
That's all for today folks! Cheers.
If any doubt or difficulty, please let me know.