Recently I installed Oracle Java. It worked fine, But with the recent upgrade with Firefox throws an error.
I checked it here, which says:
Starting with Firefox Version 52 (released in March 2017), Firefox has limited support for plug-ins, and therefore will not run Java. Use the Java Control Panel to find the installed Java version.
I double checked the symbolic link also. It is configured properly
$ java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
How can I run java applets in firefox?
The following steps should work (tested on Mint 18 based on Ubuntu 16.04LTS):
about:config
in the location barplugin.load_flash_only
and set it tofalse
User-Agent Switcher
Mozilla/5.0 (X11; Linux i586; rv:31.0) Gecko/20100101 Firefox/31.0
~/Downloads
). It will be of the form:jre-8u161-linux-i586.tar.gz
for the 32 bit version. Choose the 32 bit or 64 bit version according to the version of Firefox ESR you downloaded.Then do the following to extract the JRE in a shell (replacing with 64 bit versions if needed):
Now the Java needs to be linked to Firefox. In a shell:
Launch Firefox and verify your Java version here: https://www.java.com/en/download/installed.jsp
If it doesn't work and the wrong Java plugin appears to be loaded eg. IcedTea, then remove them in a shell:
If Firefox or Java or audio in Java don't work, there may be missing dependencies. Try the below (remove :i386 for 64 bit):
Further commentary from Oracle is linked by the page you quoted, Firefox has taken the explicit decision to stop providing the NPAPI to plugins aside from Flash, essentially meaning, Firefox will not listen to anything Java might try to say.
Your solution then would normally have to be to run Java applets in a browser that allows Java plugins. Try Chromium or QupZilla for example.
If you really want Java in Firefox, you can install Firefox ESR instead. Note that this one will not track regular Firefox version anymore, so your Firefox will grow old feature-wise, but still keep receiving security updates.