Deal with Java - Embedding Java into an (old) Web Browser

Install Java to start with. Then proceed with an old school Firefox as follows.

To get Java plug-in to work into firefox you need an older version: v52 ESR (not latest release). AND YOU ALSO NEED TO PREVENT IT FROM UPDATING ITSELF TO ESR 60,

cd ~/opt/
#wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/52.4.1esr/linux-x86_64/en-US/firefox-52.4.1esr.tar.bz2
#tar xjf firefox-52.4.1esr.tar.bz2
wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/52.9.0esr/linux-x86_64/en-US/firefox-52.9.0esr.tar.bz2
#rm -rf firefox
tar xjf firefox-52.9.0esr.tar.bz2
cd firefox/
rm -rf update*
./firefox -no-remote
#--ProfileManager

Also disable updates from the Settings,

Tools > Preferences
Advanced // Update // Never check for updates

Deploy the Java plugin,

cd ~/.mozilla/plugins
#cd /usr/lib/firefox-addons/plugins/
ln -s /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libnpjp2.so

Weaken the crypto requirements

Start menu > Oracle Java 8 plugin control panel
Start menu > Oracle Java 9 plugin control panel

or

jcontrol

or

ControlPanel

then

security > add exceptions e.g. http://localhost:xx (the port number matters)

To get to the Java console of e.g. some old enterprise-class servers, a quick and dirty fix would be,

updatedb
locate java.policy

#cp -pi /usr/lib/jvm/java-8-oracle/jre/lib/security/java.policy /usr/lib/jvm/java-8-oracle/jre/lib/security/java.policy.dist
#vi /usr/lib/jvm/java-8-oracle/jre/lib/security/java.policy

cp -pi /etc/java-8-oracle/security/java.policy /etc/java-8-oracle/security/java.policy.dist
vi /etc/java-8-oracle/security/java.policy

cp -pi /etc/java-8-openjdk/security/java.policy /etc/java-8-openjdk/security/java.policy.dist
vi /etc/java-8-openjdk/security/java.policy

grant {
    permission java.security.AllPermission;
};

References about older versions of Java, just for the record:

Alternate solution would be OpenJDK with icedtea-plugin.


HOME | GUIDES | BENCHMARKS | html