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 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 and JNI libraries for each platform
Platform Directory for IBM MQ classes for Java libraries Directory for 64-bit JNI libraries
[AIX]AIX®[Linux]Linux® (POWER, x86-64 and s390x platforms)
MQ_INSTALLATION_PATH/java/lib
MQ_INSTALLATION_PATH/java/lib64
[Windows]Windows MQ_INSTALLATION_PATH\java\lib MQ_INSTALLATION_PATH\java\lib64
[z/OS]z/OS® MQ_INSTALLATION_PATH/mqm/version_number/java/lib, where version_number is the version number in the VRM format. For example: V10R0M0. Same as for 31-bit JNI libraries
Note:
  1. [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.
  2. [IBM i]To use IBM MQ classes for Java in bindings mode on IBM i, ensure that the library QMQMJAVA is in your library list.
  3. [z/OS]On z/OS, you can use either a 31-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.