Link to home
Start Free TrialLog in
Avatar of sharma_kv123
sharma_kv123

asked on

MQSeries

Hi ,
I have a very simple MQSeries application which instantiates QueueManager and then puts the message in the queue. I have placed the jar in the path.
My class compiles but when I run the application, it throws the following exception

Exception in thread "main" java.lang.UnsatisfiedLinkError: no mqjbnd01 in java.
ibrary.path
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at com.ibm.mq.server.MQSESSION.<clinit>(MQSESSION.java:994)
        at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:66)
        at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:89)
        at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:244)
        at MSender.main(MSender.java:32)
Can anyone help me with the above problem.
I have set the path accordingly and also placed the jar in the path
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
> The jar containing the binaries must be on the path given by the System property java.library.path

This is incorrect, shared libraries cannot be loaded from jars.