Sun Java System Message Queue 3.7 UR1 Installation Guide

Configuring the Java Runtime

At startup time, 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:

ProcedureTo Set the JRE Used by the Broker

  1. Pass in the JDK or JRE using either the imqbrokerd -javahome or -jrehome command line options, respectively. (If both are passed in, the last one on the command line will take precedence.)

  2. Set the JDK or JRE in the IMQ_JAVAHOME environment variable.

  3. Let the broker use the installed JDK/JRE. The broker will pick up the latest version JDK/JRE installed on the system (greater than 1.4 ).

    To find out which JDK/JRE the broker is using, start the broker with the following command:


    imqbrokerd -verbose