Solved

MQSeries

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
My project did see openJDK that I installed. What could be the problem 7 120
word0 challenge 3 77
wordmultiple challenge 12 116
what is a "java.lang.System Property"   ? 20 56
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
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 learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

943 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

1 Experts available now in Live!

Get 1:1 Help Now