Solved

MQSeries

Posted on 2004-04-27
5
528 Views
Last Modified: 2009-07-29
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
0
Comment
Question by:sharma_kv123
  • 2
5 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 25 total points
ID: 10931361
The jar containing the binaries must be on the path given by the System property java.library.path
0
 
LVL 92

Assisted Solution

by:objects
objects earned 25 total points
ID: 10934147
set LD_LIBRARY_PATH to where libmqjbnd01 resides.
or put it in a directory contained in LD_LIBRARY_PATH :)
0
 
LVL 92

Expert Comment

by:objects
ID: 11218215
> 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.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
custom annotations 9 42
egit plugin on eclipse 8 82
fibonacci ten numbers 4 45
Delphi Firemonkey: if the Sms contain special characters it won't send it 3 43
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This video teaches viewers about errors in exception handling.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question