UPDATE2:
On startup, Firefox references the java plugin file located in /usr/lib/mozilla/plugins
, this file could be named libjavaplugin.so
or mozilla-javaplugin.so
Currently, the IcedTea install from Ubuntu Software Center is IcedTea-plugin7 then its configuration results in the incorrect JVM version reported by FireFox about:plugins
and from the Oracle browser test - despite a prior OpenJDK8 installation . A possible explanation is the way IcedTea configures itself by creating directories in /usr/lib/jvm
with names prefixed by java-<version>-openjdk<bits>
even if these JVMs are not installed on the machine.
- java-6-openjdk-amd64
- java-7-openjdk-amd64
- java-8-openjdk-amd64
symLinks are then created to these folders for the installed jdk and a default jdk1.7 - in the case that openjdk8 was installed.
- java-1.7.0-openjdk-amd64
- java-1.8.0-openjdk-amd64 (installed openJDK)
The symlink itweb-settings
is configured to reference alternatives for a configuration file created in each JVM copy folder
/usr/lib/jvm/java-6-openjdk-amd64/jre/bin/itweb-settings
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/itweb-settings
and an executable IcedTeaPlugin.so
at location /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64
referenced by link mozilla-javaplugin.so
However, the IcedTea-plugin7 does not place a configuration or executable within the copy folder of java-8-openjdk-amd64/jre/
which could explain the selection of the default / higher priority jdk7 as defined by the symlink mozilla-javaplugin.so
.
Since, you have already installed IcedTea-plugin8 you need to confirm the configuration then attempt to select the different JVMs as you required.
- close FireFox
- confirm the executable and config files are located within the openJDK8 copy folder
/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64
and
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin
- confirm the contents of the config file references the correct JVM
confirm the value of symlink itweb-settings
to the correct configuration file per JVM
sudo update-alternatives --display itweb-settings
if this works for jdk8 then update-alternatives for each JVM
sudo update-alternatives --install mozilla-plugins.so <IcedTeaPlugin.so per JVM>
sudo update-alternatives --install itweb-settings <itweb-settings per JVM>
then configure itweb-settings as you require to use each JVM
sudo update-alternatives --configure itweb-settings
- check JVM version in Firefox
****** UPDATE3 ******
itweb-settings
configuration file references; two possible paths from the HOME directory for the deployment.properties
~/.config/icedtea-web/deployment.properties
~/.icedtea/deployment.properties
and a global path
/etc/.java/.deploy/deployment.properties
Maybe one of these files is referencing openJdk6 ?
****** UPDATE4 ******
The plugin relies on symlink priority, so ensure that jdk8 has the highest priority then update-alternatives
to auto mode
.
And ensure that the symlink for javaws
is defined
uninstall then re-install the v8 plugin
Please try this workaround. For me, the plugins like Java and VLC came back after doing this. I'm using Ubuntu 16.04 64 bit with Mozilla Firefox 64 bit version 52 (not ESR) and Java JDK 1.8.0_112
- Open Firefox and type about:config in address bar and press enter
- Click 'I accept the risk!'
- Right click anywhere and select New>Boolean
- Type plugin.load_flash_only in the box that appears
- Set the value to false
- Clear all history and restart Firefox
I'm also using various Government websites which uses java plugin and Digital Signatures.
Try this and let me know.
Edit: Mozilla Firefox 53 will remove the flag plugin.load_flash_only
so that this workaround won't work anymore.
Pale Moon web browser team announced that they will continue the support of NPAPI plugins indefinitely. To install java plugin in Pale Moon, run this in terminal
sudo ln -s /usr/lib/java/jdk1.8.0_121/jre/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/libnpjp2.so
I've tested java plugin in Pale Moon browser. 100% working.
Best Answer
As per my comment on the question, mozilla provide some instructions for manually uninstalling.
The above Mozilla.org community-contributed content is made available under CC-BY-SA 3.0, which permits properly-attributed derivative works distributed under the same license. CC-BY-SA is also the license that covers content here on Ask Ubuntu. Its formatting is changed very slightly to accommodate the StackExchange format. The page from which the above block-quote was taken lists Bo102010, cor-el, Verdi, and scoobidiver as contributing authors.