Posts Tagged ‘java’

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 are using OEL6/RHEL6, then you can use IcedTea Web Start (yum install icedtea-web) instead of javaws. You may find that for some iLOM, only 32bits OEL6/RHEL6 with IcedTea Web start can open the console to mount ISO image.
  • 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.

configure syslog to redirect WebSphere Message Broker (mq) messages to file

April 29th, 2011 Comments off

On Linux® and UNIX® systems, all WebSphere® Message Broker messages (other than those generated by the command line utilities) are sent to the syslog, so it is useful to redirect user messages to a separate file.

Start of changeOn UNIX, syslog entries are restricted in length and messages that are sent to the syslog are truncated by the new line character. To record a large amount of data in a log on UNIX, set the Destination property on the Trace node to File or User Trace instead of Local Error Log.End of change

Before you create a broker on Linux or UNIX systems, configure the syslog daemon to redirect user messages to a file called user.log:

Log on as root.
Enter the following commands to create a file called user.log.
On UNIX systems, enter the command:

touch /var/adm/user.log
chown root:mqbrkrs /var/adm/user.log
chmod 640 /var/adm/user.log

On Linux, enter the command:

touch /var/log/user.log
chown root:mqbrkrs /var/log/user.log
chmod 640 /var/log/user.log

Add the following line to the /etc/syslog.conf file Start of change(on later versions of SUSE Linux, this is /etc/syslog-ng.conf)End of change to redirect debug level messages to the file user.log:
On UNIX systems, enter the command: /var/adm/user.log

On Linux, enter the command: /var/log/user.log

You can use user.* - instead of in the preceding examples.
* means that information, notice, warning, and debug messages are caught
- means that syslog does not synchronize the file after writing to it.
You might experience a performance gain, but you can lose some data if the computer fails immediately after it has written to the file.
Start of changeAdd a line to ensure that messages at the required level from the user facility are recorded. If you specify a level of info, all operational messages are recorded; these messages provide important information about the operation of the broker, and can be useful in diagnosing problems.End of change
Restart the syslog daemon.
On AIX®, enter the command:

refresh -s syslogd

On HP-UX and Solaris, enter the command:

kill -HUP 'cat /etc/'

On Linux, enter the command:

/etc/init.d/syslogd restart


/etc/rc.d/init.d/syslogd restart

for systems where rc.d is not a soft link
For other syslog options, see the documentation for your operating system.

About other websphere message broker documents, please refer to

Categories: IT Architecture, Linux, Systems Tags: , ,