At startup, the Message Queue broker checks to make sure it has access to the required Java runtime version (JDK/JRE 1.5). There are a number of ways you can configure or set the JRE used by the broker. These are shown in the following list, in order of precedence:
Pass in the JDK or JRE using either the imqbrokerd - javahome or -jrehome command line options, respectively. If you specify both, the last one on the command line will take precedence).
Set the JDK or JRE in the IMQ_JAVAHOME environment variable.
Let the broker use the installed JDK. The broker tries to locate the latest JDK installed on the system.
To check which version the broker is using, you can start the broker with the following command: imqbrokerd -verbose