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 the application by using a java command with the following format:java -Djava.library.path= library_path application_namewhere 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.
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) |
Linux (x86 platform) | MQ_INSTALLATION_PATH/java/lib |
Linux (POWER, x86-64 and zSeries s390x platforms) |
MQ_INSTALLATION_PATH/java/lib (32-bit libraries) MQ_INSTALLATION_PATH/java/lib64 (64-bit libraries) |
Windows |
MQ_INSTALLATION_PATH\Java\lib (32-bit libraries) MQ_INSTALLATION_PATH\Java\lib64 (64-bit libraries) |
z/OS |
MQ_INSTALLATION_PATH/mqm/V8R0M0/java/lib (32-bit and 64-bit libraries) |
- On AIX or Linux ( Power platform), use either the 32-bit libraries or the 64-bit libraries. Use the 64-bit libraries only if we are running the application in a 64-bit Java virtual machine (JVM) on a 64-bit platform. Otherwise, use the 32-bit libraries.
- On Windows, we 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.
- To use IBM MQ classes for Java in bindings mode on IBM i, ensure that the library QMQMJAVA is in your library list.
- On z/OS, we 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.
Parent topic: What is installed for IBM MQ classes for Java
Related concepts