Solved

MQSeries

Posted on 2004-04-27
5
519 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

813 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now