IBM MQ classes for Java libraries

The location of the IBM® MQ classes for Java libraries varies according to platform. Specify this location when you start an application.

To specify the location of the Java Native Interface (JNI) libraries, start your application by using a java command with the following format:

java -Djava.library.path= library_path application_name
where library_path is the path to the IBM MQ classes for Java, which include the JNI libraries. Table 1 shows the location of the IBM MQ classes for Java libraries for each platform. In this table, MQ_INSTALLATION_PATH represents the high-level directory in which IBM MQ is installed.
Table 1. The location of the IBM MQ classes for Java libraries for each platform
Platform Directory containing the IBM MQ classes for Java libraries
AIX®
MQ_INSTALLATION_PATH/java/lib (32-bit libraries)
MQ_INSTALLATION_PATH/java/lib64 (64-bit libraries)
HP-UX
Linux® (
POWER, x86-64
and
zSeries s390x platforms)
Solaris (x86-64 and SPARC platforms)
MQ_INSTALLATION_PATH/java/lib (32-bit libraries)
MQ_INSTALLATION_PATH/java/lib64 (64-bit libraries)
Linux (x86 platform)
MQ_INSTALLATION_PATH/java/lib
Windows
MQ_INSTALLATION_PATH\Java\lib (32-bit libraries)
MQ_INSTALLATION_PATH\Java\lib64 (64-bit libraries)
[z/OS]z/OS® [z/OS]
MQ_INSTALLATION_PATH/mqm/V8R0M0/java/lib
(32-bit and 64-bit libraries)
Note:
  1. [AIX][Solaris][HP-UX][Linux]On AIX, HP-UX, Linux ( Power platform), or Solaris, use either the 32-bit libraries or the 64-bit libraries. Use the 64-bit libraries only if you are running your application in a 64-bit Java virtual machine (JVM) on a 64-bit platform. Otherwise, use the 32-bit libraries.
  2. [Windows]On Windows, you can use the PATH environment variable to specify the location of the IBM MQ classes for Java libraries instead of specifying their location on the java command.
  3. [IBMi]To use IBM MQ classes for Java in bindings mode on IBM i, ensure that the library QMQMJAVA is in your library list.
  4. [z/OS]On z/OS, you can use either a 32-bit or 64-bit Java virtual machine (JVM). You do not have to specify which libraries to use; IBM MQ classes for Java can determine for itself which JNI libraries to load.