This is similar to the earlier question Exception in thread “main” java.lang.NoClassDefFoundError: com/ibm/mq/MQException
I am facing a similar issue in Linux. I have installed the following:
MQSeriesRuntime-7.0.1-3.x86_64.rpm
MQSeriesSDK-7.0.1-3.x86_64.rpm
MQSeriesJava-7.0.1-3.x86_64.rpm
MQSeriesServer-7.0.1-3.x86_64.rpm
When I create an execution group , I get:
java.lang.ClassNotFoundException: com.ibm.mq.MQException
I have CLASSPATH
set by using this line of code:
export CLASSPATH=$CLASSPATH:/opt/mqm/java/lib/com.ibm.mq.jmqi.jar:/opt/mqm/java/lib/com.ibm.mq.jar:.
Version of broker is 8.0.0.1 and that of MQ is 7.0.1.3 . Can you please suggest what is wrong? According to the previous answer, am I supposed to install the Client also?
You need to review the WMQ Using Java manual for WMQ v7.0.1.*, as you are missing MQ JAR files.
For MQ base Java (not MQ/JMS), you need at least 5 MQ JAR files: