The WebSphere MQ Java libraries

 

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 Java libraries, which include the JNI libraries. Table 1 shows the location of the WebSphere MQ Java libraries for each platform.

The location of the WebSphere MQ Java libraries for each platform
Platform Directory containing the WebSphere MQ Java libraries
AIX

/usr/mqm/java/lib (32-bit libraries)
/usr/mqm/java/lib64 (64-bit libraries)

HP-UX
Linux (POWER™, x86-64
and zSeries s390x platforms)
Solaris (x86-64 and Sparc platforms)

/opt/mqm/java/lib (32-bit libraries)
/opt/mqm/java/lib64 (64-bit libraries)

Linux (x86 platform)
Linux (zSeries platform)

/opt/mqm/java/lib
Windows install_dir\Java\lib
z/OS

install_dir/mqm/V6R0M0/java/lib
(31-bit and 64-bit libraries)

install_dir is the directory in which you installed WebSphere MQ. On Windows, this directory is normally C:\\IBM\WebSphere MQ. On z/OS, this directory is likely to be /usr/lpp.

  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, we can use the PATH environment variable to specify the location of the WebSphere MQ Java libraries instead of specifying their location on the java command.

  3. To use WebSphere MQ Java in bindings mode on i5/OS, ensure that the library QMQMJAVA is in your library list.

  4. On z/OS, we can use either a 31-bit or 64-bit Java virtual machine (JVM) when running applications in WebSphere Application Server. In other environments on z/OS, we can use only a 31-bit JVM. You do not have to specify which libraries to use and you do not need to modify the system path to use 64-bit support.


uj10340_