Archive for the ‘Java’ Category

install java jdk on linux

January 7th, 2014 Comments off

Here's the steps if you want to install java on linux:

wget <path to jre-7u25-linux-x64.rpm> -P /tmp
rpm -ivh /tmp/jre-7u25-linux-x64.rpm
mkdir -p /root/.mozilla/plugins
rm -f /root/.mozilla/plugins/
ln -s /usr/java/jre1.7.0_25/lib/amd64/ /root/.mozilla/plugins/
ll /root/.mozilla/plugins/


  • You'll need to install jre i386 version if your firefox browser is 32 bits. And you can install jre6 from here. You should download packages like "jre-6u33-linux-i586-rpm.bin" and run chmod +x jre-6u33-linux-i586-rpm.bin && ./jre-6u33-linux-i586-rpm.bin after that. You may locate /usr/java/jre1.6.0_33/bin/javaws for opening remote console when prompted.
  • If you want to install java plugin of firefox on linux, or even install firefox under linux, then you can refer to this article.

java plugin of firefox installation on linux platform

December 4th, 2012 Comments off

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.
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(;
#mainpage {
visibility: visible !important;
  • Install JRE 6: Go to 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/ /root/.mozilla/plugins/


  • 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/ 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.