2024年4月14日发(作者:)
Page 1 of 9
Download, install and setup of IBM SDK for Java 8 in Linux
to run MQ Java/JMS client applications
/support/pages/node/6202414
Angel Rivera – *************.com
IBM MQ Support
+++ Objective
The objective of this tutorial is to show all the steps to download, install and setup IBM SDK
(Software Development Kit) for Java 8 in Linux (RHEL 7.6), in order to work with IBM MQ
Client applications that use Java or JMS.
For illustration purposes, the version MQ 9.1.5 CD (Continuous Delivery) will be used.
Why? Because it is the latest one at the time this tutorial is written.
In addition, it is important for you to see concrete real file names instead of using generic
file names.
Furthermore, a Linux x86 64-bit VM will be used and it is using RHEL 7.6:
+ROOT+ : /
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.6 (Maipo)
The default installation directory will be used:
/opt/ibm/java-x86_64-80
+++ Which are the MQ requirements for working with Java applications?
If you have a Linux Host (physical server, VM, …) you will need to have 2 things in order to
run MQ Java/JMS Client applications:
a) MQ jar files
b) A Java Runtime Environment (JRE) or a Java Software Development Kit (SDK)
Date last updated: 27-Apr-2020
Page 2 of 9
+++ How to get the MQ jar files?
There are several methods for getting the MQ jar files:
1) You could install the rpm filesets for MQ, which are provided by downloading:
- The MQ Server package from IBM Passport Advantage
/support/pages/downloading-ibm-mq-version-915-continuous-
delivery
Downloading IBM MQ Version 9.1.5 Continuous Delivery
Part Number Description
CC0AGML IBM MQ V9.1.5 Continuous Delivery Release for Linux on x86 64-bit eImage
- The MQ Client package from IBM Fix Central
/mq91cdclients
MQ 9.1 Clients for CD and LTS (including Java-InstallRA, Install-Java-All, Redist)
You will download a file and after you unpack it, you will see several filesets.
The filesets of interest for this tutorial are:
MQSeriesJava-9.1.5-0.x86_ (REQUIRED)
MQSeriesJRE-9.1.5-0.x86_ (OPTIONAL)
1.a) What is the difference between the above filesets?
1.a.1) MQSeriesJava-9.1.5-0.x86_ (REQUIRED)
The *Java*.rpm fileset provides the MQ Classes for Java, the MQ Classes for JMS, binary
executables, utilities, etc.
You will need these files for compilation and runtime.
The following environment variables from the MQ utility “setmqenv” are set:
MQ_JAVA_INSTALL_PATH=/opt/mqm/java
MQ_JAVA_LIB_PATH=/opt/mqm/java/lib64
1.a.2) MQSeriesJRE-9.1.5-0.x86_ (OPTIONAL)
The *JRE*.rpm fileset provides a Java Runtime Environment.
It is an OPTIONAL component to install.
发布评论