Install Firefox with java support Ubuntu 18.0
Installation:
First, make sure you have installed the JRE or JDK. For this example I use the JDK installed in the directory: /opt/jdk1.8.0_201
Execute these commands:
sudo dpkg --add-architecture i386 sudo apt update sudo apt install libc6:i386 sudo apt-get install lib32stdc++6 sudo apt install libgtk-3-0 sudo apt-get install ia32-libs
Create a directory of the installation
sudo mkdir -p /opt/firefox/50/64/ cd /opt/firefox/50/64/
Download the Firefox, version 50:
sudo wget https://ftp.mozilla.org/pub/firefox/releases/50.0/linux-x86_64/en-US/firefox-50.0.tar.bz2
Uncompress it
tar xjvf firefox-50.0.tar.bz2
Create the directory .mozilla/plugins in the home directory of the user:
mkdir -p ~/.mozilla/plugins cd ~/.mozilla/plugins
Create a soft link to enable the java (libnpjp2.so) inside of plugins directory:
ln -s /opt/jdk1.8.0_201/jre/lib/amd64/libnpjp2.so ~/.mozilla/plugins/
Start Firefox:
/opt/firefox/50/64/firefox/firefox
Verification:
1. Menu –> Add-ons
2. The Java plugin must be in the plugin list