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 » MQError Message java.lang.UnsatisfiedLinkError

Post new topic  Reply to topic
 MQError Message java.lang.UnsatisfiedLinkError « View previous topic :: View next topic » 
Author Message
sam
PostPosted: Sat Apr 06, 2002 6:21 pm    Post subject: Reply with quote

Acolyte

Joined: 02 Apr 2002
Posts: 52

I'm getting this message when trying to run my Java class

Exception in thread "main" java.lang.UnsatisfiedLinkError: no mqjbnd04 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at com.ibm.mq.server.MQSESSION$1.run(MQSESSION.java:179)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.mq.server.MQSESSION.<clinit>(MQSESSION.java:175)
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:67)
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:327)
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:149)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:139)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:157)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:150)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.java:666)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:615)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:392)
at MSender.main(MSender.java:21)

I know that /opt/mqm/java/lib has to be in the PATH but I'm not able to get over this inspite of including it in the PATH environment variable. Can clue as to what I'm missing. Thanks. I've been fighting over this for a long time.
Back to top
View user's profile Send private message
kolban
PostPosted: Sun Apr 07, 2002 11:24 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

What platform/release are you running on? It may be that you need to set the LIBPATH or LD_LIBRARY_PATH variable to include the java/lib directory. Scan the Using Java manual carefully looking for such.
Back to top
View user's profile Send private message
sam
PostPosted: Sun Apr 07, 2002 1:34 pm    Post subject: Reply with quote

Acolyte

Joined: 02 Apr 2002
Posts: 52

That worked, I had to set a LD_LIBRARY_PATH environment variable and include the path to the library files. Thanks.
Back to top
View user's profile Send private message
kavithadhevi
PostPosted: Mon Jun 03, 2002 1:08 pm    Post subject: Reply with quote

Master

Joined: 14 May 2002
Posts: 201
Location: USA

Hi,
i am trying to refresh the same query ("mqjbnd04...)which leads to MQM.dll error as i could not find any solution in the posting. can you pls help me understand wat causes this and wat should i do ?
i have added everything in classpath and path.
i am using NT/2000 MQSeries client which i downloaded from IBM website.
_________________
Thanks in Advance.

Kavitha
IBM Certified System Administrator
Websphere MQ v 5.3
www.zealphoenix.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gali_sridhar
PostPosted: Tue Jun 04, 2002 7:09 am    Post subject: Reply with quote

Novice

Joined: 31 May 2002
Posts: 16

The MQI calls U r calling are not able to find the mqjbnd04.dll.
Usually the DLL is located in ...\MQSeries\Java\lib.

While setting the ClassPath, it gives access to the .Jar file but class files r not able to access the DLL.

There is one blunt method, copy this DLL from this directory and place it in the winnt\system32 directory and run the java class.

Good Luck,
Sridhar
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQError Message 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.