Home > IT Architecture, Java, Linux, Programming, Systems > java plugin of firefox installation on linux platform

java plugin of firefox installation on linux platform

December 4th, 2012

Some iLom software(for example oracle iLom) use java jnlp applet(java console) to open remote console of the server. To use this functionality, you need java plugin on firefox installed. Here's the detailed steps:

  • Update firefox: yum update firefox, please note that you better remove firefox 64 bit version and use 32 version ones(reason followed). After this, you'll have firefox 10 on the system.
PS:
If you found some elements not showing in firefox after the upgrading(for example "Launch Remote Console" disappeared), you'll need install Stylish addon in firefox and then create the following new style using code below:
@namespace url(http://www.w3.org/1999/xhtml);
#mainpage {
visibility: visible !important;
}
  • Install JRE 6: Go to http://www.oracle.com/technetwork/java/javase/downloads/jre6u37-downloads-1859589.html and download jre-6u37-linux-i586-rpm.bin. After that, install the package on the system using rpm -Uvh.(make sure NOT to download 64bits version, as java console only support 32bits java plugin)
  • Make java plugin available to firefox: If you are planning to run firefox under root, do the following steps:

mkdir -p /root/.mozilla/plugins/

ln -s /usr/java/jre1.6.0_37/lib/i386/libnpjp2.so /root/.mozilla/plugins/

PS:

  • If you are using OEL6/RHEL6, then you can use IcedTea Web Start (yum install icedtea-web) instead of javaws.
  • if you've installed java plugin before, you'll first need remove it.
  • Now restart firefox, and go to about:plugins, you'll see java plugin enabled. Open java console and enjoy!(select /usr/bin/javaws if prompted)
  • If you still find the console not prompting up, then it may be caused by java security setting. You can refer to here for WA.
  • If you met error like "No appropriate protocol (protocol is disabled or cipher suites are inappropriate)", then one possibility is that firefox/java/libnpjp2.so are not of the same architecture, you should use i386(or x86_64) for all of them.
  • Here's the steps to install firefox browser under linux platform:

1. Download and install EPEL repo(wget epel-release package on the page below, then install it using "rpm -i <package name>.rpm"):

If you are running an EL7 version, please visit here to get the newest 'epel-release' package for EL7: The newest version of 'epel-release' for EL7

If you are running an EL6 version, please visit here to get the newest 'epel-release' package for EL6: The newest version of 'epel-release' for EL6

If you are running an EL5 version, please visit here to get the newest 'epel-release' package for EL5: The newest version of 'epel-release' for EL5

2. Install firefox:

yum install -y firefox-31.4.0-1.0.1.el5_11

3. Enable newer version of firefox by run firefox in VNC. If you find it's still the old version, then run "killall firefox" as root, and then try again.

Good Luck!


Comments are closed.