The IBM WebSphere MQ classes for Java libraries

The location of the IBM® WebSphere® 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 using a java command with the following format:
java -Djava.library.path=library_path application_name
where library_path is the path to the WebSphere MQ classes for Java libraries , which include the JNI libraries. Table 1 shows the location of the WebSphere MQ classes for Java libraries for each platform.
Table 1. The location of the WebSphere MQ classes for Java libraries for each platform
Platform Directory containing the WebSphere 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)

MQ_INSTALLATION_PATH represents the high-level directory in which WebSphere MQ is installed.

Note:
  1. 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. On Windows, you can use the PATH environment variable to specify the location of the WebSphere MQ classes for Java libraries instead of specifying their location on the java command.
  3. To use WebSphere MQ classes for Java in bindings mode on IBM i, ensure that the library QMQMJAVA is in your library list.