Author |
Message
|
sam |
Posted: Sat Apr 06, 2002 6:21 pm Post subject: |
|
|
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 |
|
 |
kolban |
Posted: Sun Apr 07, 2002 11:24 am Post subject: |
|
|
 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 |
|
 |
sam |
Posted: Sun Apr 07, 2002 1:34 pm Post subject: |
|
|
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 |
|
 |
kavithadhevi |
Posted: Mon Jun 03, 2002 1:08 pm Post subject: |
|
|
 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 |
|
 |
gali_sridhar |
Posted: Tue Jun 04, 2002 7:09 am Post subject: |
|
|
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 |
|
 |
|