Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

Using MQSeries and Java on an HPUX 11 machine

Kaplankiran
Occasional Contributor

Using MQSeries and Java on an HPUX 11 machine

Hi all,
I have a small application in java1.2 that connects to an MQManager and puts a message to a queue.
The application works fine in Windows NT.
if I try to run the application in HP-UX, I get the following error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no mqjbnd02 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1290)
at java.lang.Runtime.loadLibrary0(Runtime.java:473)
at java.lang.System.loadLibrary(System.java:777)
at com.ibm.mq.server.MQSESSION.(MQSESSION.java:139)
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:67)

paths and CLASSPATH is:
PATH=$PATH:/opt/java1.2/bin:/opt/mqm/samp/bin:/opt/mqm/java/lib:/opt/mqm/java/bin
:/opt/mqm/java/samples/base:.
export PATH

SHLIB_PATH=/opt/mqm/java/lib
export SHLIB_PATH

CLASSPATH=/opt/mqm/java/lib/com.ibm.mq.jar:/opt/mqm/java/lib/com.ibm.mqjms.jar
:/opt/mqm/java/lib/jms.jar:/opt/mqm/java/lib/jndi.jar
:/opt/mqm/java/lib/com.ibm.mqbind.jar:/opt/mqm/java/lib
:/opt/mqm/java/lib/samples:/opt/mqm/java/samples
:/opt/java1.2/lib/:/opt/java1.2/lib/tools.jar:/opt/java1.2/jre/lib:.
export CLASSPATH


Regards

Kaplan
1 REPLY
Tom Geudens
Honored Contributor

Re: Using MQSeries and Java on an HPUX 11 machine

Hi,
You should definitely have
/opt/mqm/lib in your SHLIB_PATH as well.
Other than that I don't see - at first
sight :-) - anything wrong.

Regards,
Tom Geudens

A life ? Cool ! Where can I download one of those from ?