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

Post new topic  Reply to topic
 java.lang.UnsatisfiedLinkError « View previous topic :: View next topic » 
Author Message
murugaanandam
PostPosted: Wed May 19, 2004 11:42 pm    Post subject: java.lang.UnsatisfiedLinkError Reply with quote

Novice

Joined: 22 Apr 2004
Posts: 19

dear all,

i run the mqbrowser.java sample program in MQ/Solaris(SPARC).
i got this exception

Exception in thread "main" java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1403)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:832)
at com.ibm.mq.MQSESSION.loadLib(MQSESSION.java:827)
at com.ibm.mq.server.MQSESSION$1.run(MQSESSION.java:221)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.mq.server.MQSESSION.<clinit>(MQSESSION.java:215)
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:67)
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:455)
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 mqbrowser.start(mqbrowser.java:106)
at mqbrowser.main(mqbrowser.java:86)

i follow the installation instruct in which in mention in this pdf (websphere MQ using JAVA).

i cant able to find a solution.
pl help me to solve this pbm

thanx in advance

regards
muruganandam
Back to top
View user's profile Send private message
jsware
PostPosted: Wed May 19, 2004 11:59 pm    Post subject: Reply with quote

Chevalier

Joined: 17 May 2001
Posts: 455

Have you added the following directory to LD_LIBRARY_PATH:

LD_LIBRARY_PATH=/opt/mqm/java/lib

The Using Java guide notes that this should be appended to your existing LD_LIBRARY_PATH, not replace it.

Can you see a file called libmqjbnd05.so in the above directory?

What other directories do you have for your LD_LIBRARY_PATH setting? Does it include a directory that has libmqm.so in it?

I'm not a Solaris guy, and am transposing the names from AIX (which means the filename extensions may be incorrect - on AIX they also use .a as a dynamic library extension).
_________________
Regards
John
The pain of low quaility far outlasts the joy of low price.
Back to top
View user's profile Send private message
shogan2003
PostPosted: Thu May 20, 2004 1:18 am    Post subject: Reply with quote

Centurion

Joined: 03 Jul 2003
Posts: 133
Location: London

Coincidentally I had the same issue and I can confirm the previous suggestion works on Solaris.
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/mqm/java/lib
_________________
MQSI2 certified specialist
MQSeries certified specialist
Back to top
View user's profile Send private message Send e-mail
murugaanandam
PostPosted: Thu May 20, 2004 3:29 am    Post subject: same Exception Reply with quote

Novice

Joined: 22 Apr 2004
Posts: 19

hi all,

thanx for reply,
i added

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/mqm/java/lib
in .dtprofile file

this line i previously added

MQ_PATH=/opt/mqm/java/lib/com.ibm.mq.jar:.:/opt/mqm/java/lib/com.ibm.mqjms.jar:/opt/mqm/java/lib/com.ibm.mqbind.jar:/opt/java/lib/connector.jar
CLASSPATH=$MQ_PATH:$CLASSPATH
export CLASSPATH

but still i got same excepiton....


regards
muruganandam
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu May 20, 2004 5:20 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Same problem:

http://www.mqseries.net/phpBB/viewtopic.php?t=15477

and things worked with the environment variable. I'd double-check that you actually have it set for the environment where your program is running. You could also double-check that you actually have the file on your system.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
RogerLacroix
PostPosted: Thu May 20, 2004 9:03 am    Post subject: Reply with quote

Jedi Knight

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

Did you do
Code:
export LD_LIBRARY_PATH


Regards,
Roger Lacroix
_________________
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
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.