Solved

MQSeries

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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 learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

744 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

15 Experts available now in Live!

Get 1:1 Help Now