ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.

Post new topic  Reply to topic
 java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library. « View previous topic :: View next topic » 
Author Message
rashmishaw
PostPosted: Tue Dec 04, 2007 10:59 pm    Post subject: java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library. Reply with quote

Newbie

Joined: 04 Dec 2007
Posts: 7

Hello Friends,

I am new to MQ, trying to run a program but its giving me the following error :

java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at com.ibm.mq.MQSESSION.loadLib(MQSESSION.java:865)
at com.ibm.mq.server.MQSESSION$1.run(MQSESSION.java:227)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.mq.server.MQSESSION.<clinit>(MQSESSION.java:221)
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:6
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:493)
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:155)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:153)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:189)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:171)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.java:754)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:688)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:417)
at com.mobily.adapters.mqadapter.MQConnectionManager.initConnections(MQConnectionManager.java:270)
at com.mobily.adapters.mqadapter.MQConnectionManager.<init>(MQConnectionManager.java:137)
at com.mobily.mq.util.MQHelper.initMQ(MQHelper.java:123)
at com.mobily.mq.util.MQHelper.initializeInstance(MQHelper.java:95)
at com.mobily.generic.Main.ProcessDummyFlow.initMQ(ProcessDummyFlow.java:108)
at com.mobily.generic.Main.ProcessDummyFlow.main(ProcessDummyFlow.java:47)
Exception in thread "main"

I have read lots of post for this particular error, however nothing helped much.
-I have set the path as per java manual chapter 2 env variable
-I have also specified the classppath, which include jar files in wmq/java/lib
-where we have the mqjbnd05.dll file.
-even installed and reinstalled MQ

But nothing helped. Please let me know were am I wrong or what am I missing???
Back to top
View user's profile Send private message
Gaya3
PostPosted: Tue Dec 04, 2007 11:55 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Mods please move this to WebSphere MQ Java / JMS section

as this deals with Java programming

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
Gaya3
PostPosted: Tue Dec 04, 2007 11:58 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Hi rashmishaw,

Kindly go through the following link,

http://www.mqseries.net/phpBB2/viewtopic.php?t=40546

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
rashmishaw
PostPosted: Wed Dec 05, 2007 7:11 pm    Post subject: Reply with quote

Newbie

Joined: 04 Dec 2007
Posts: 7

I have tried that out but I am still getting the same error .. nothing worked
Back to top
View user's profile Send private message
Gaya3
PostPosted: Thu Dec 06, 2007 12:26 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Hi

Why i am pointing out here it is, the error prompts

no mqjbnd05 in java.library.path

verify the jar is in place and all read-write-execute permission for this.

check the CLASSPATH variable
LD_LIBRARY_PATH too

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
rashmishaw
PostPosted: Thu Dec 06, 2007 9:33 pm    Post subject: Reply with quote

Newbie

Joined: 04 Dec 2007
Posts: 7

My classpath variable is C:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mq.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\connector.jar;C:\Program Files\IBM\WebSphere MQ\tools\java\base;C:\Program Files\IBM\WebSphere MQ\Java\lib\jta.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\providerutil.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mqjms.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\ldap.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jndi.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jms.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\fscontext.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mqbind.jar


and I am not sure abt LD_LIBRARY_PATH I am using windows by LD_LIBRARY_PATH you mean system variable path then here is the path
C:\j2sdk1.4.2_16\bin;C:\Program Files\IBM\WebSphere MQ\Java\lib;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\ProgramFiles\Oracle\jre\1.1.8\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;C:\Program Files\IBM\WebSphere MQ\bin;C:\Program Files\IBM\WebSphere MQ\tools\c\samples\bin

I am really not getting out of this problem ... tried so many ways but nothing seems to be going rt ?????????? Help plssssssssssss
Back to top
View user's profile Send private message
manicminer
PostPosted: Fri Dec 07, 2007 1:09 am    Post subject: Reply with quote

Disciple

Joined: 11 Jul 2007
Posts: 177

Have you looked at Page 10 - 12 of the Using Java manual?

Have you set / checked that your PATH environment variable to points to the java lib directory as it states?
Back to top
View user's profile Send private message
Gaya3
PostPosted: Fri Dec 07, 2007 1:29 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Hi

again posting the same website

http://www-304.ibm.com/jct09002c/isv/tech/faq/individual.jsp?oid=1:26362

Go through the above one...and solve it

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
rashmishaw
PostPosted: Wed Dec 12, 2007 11:38 pm    Post subject: Reply with quote

Newbie

Joined: 04 Dec 2007
Posts: 7

Was finally able to run the program .. by including

MQENviorment : Host
MQEnvironment.channel
MQEnvironment.port

in the code ..

This issue comes when the code cannot get the host name .. so I set the host name in the code itself .. but I think its not the correct way of handling the issue..

Pls do post any solution which can resolve the issue without using MQENV in the code ....
Back to top
View user's profile Send private message
Gaya3
PostPosted: Thu Dec 13, 2007 2:08 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Hi

I suspect, you have hard coded the environment variables in the code,

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
rashmishaw
PostPosted: Thu Dec 13, 2007 2:42 am    Post subject: Reply with quote

Newbie

Joined: 04 Dec 2007
Posts: 7

Yes, has to run the program ..
Back to top
View user's profile Send private message
Gert-Jan
PostPosted: Thu Dec 13, 2007 6:26 am    Post subject: Reply with quote

Newbie

Joined: 30 Sep 2004
Posts: 5
Location: The Netherlands

What about putting the required MQEnvironment data in an ini file?
Or utilizing commandline parameters?
Back to top
View user's profile Send private message Visit poster's website
mpong
PostPosted: Fri Jan 22, 2010 6:33 am    Post subject: Reply with quote

Disciple

Joined: 22 Jan 2010
Posts: 164

Hi,

Whenever u get a exception saying Exception in thread "main" java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.path, it tries to tell u, you have not kept external jar files where it should be.

please keep your externe jar files in below directory
C:\Program Files\Java\jre6\lib\com.ibm.mq.jar
C:\Program Files\Java\jre6\lib\connector.jar

These jar files can be downloaded in google.

Regards
Mahes
MQ Admin

"Try try until you die"
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Jan 22, 2010 7:00 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

mpong wrote:
Hi,

Whenever u get a exception saying Exception in thread "main" java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.path, it tries to tell u, you have not kept external jar files where it should be.

please keep your externe jar files in below directory
C:\Program Files\Java\jre6\lib\com.ibm.mq.jar
C:\Program Files\Java\jre6\lib\connector.jar

These jar files can be downloaded in google.




Most of this is at least inaccurate if not wrong.

The error usually means that you're trying to establish a bindings connection using client install.

And it never really matters where you put the MQ jar files, and you should never move them out of the installed location. It only matters that the location they're in is properly on the classpath.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Fri Jan 22, 2010 2:22 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

mqjeff wrote:
The error usually means that you're trying to establish a bindings connection using client install.

Jeff is correct.

mqjbnd05.dll is located in {MQ_Install_Path}\Java\lib

rashmishaw wrote:
C:\j2sdk1.4.2_16\bin;C:\Program Files\IBM\WebSphere MQ\Java\lib;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\ProgramFiles\Oracle\jre\1.1.8\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;C:\Program Files\IBM\WebSphere MQ\bin;C:\Program Files\IBM\WebSphere MQ\tools\c\samples\bin

You are missing C:\Program Files\IBM\WebSphere MQ\Java\lib in your PATH environment variable.

Of course, I am assuming you installed the MQ Java component when you installed WMQ. Please check that the Java\lib directory actually exists on your system.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.