Author |
Message
|
achintk |
Posted: Mon Oct 23, 2006 12:28 am Post subject: mqjbnd04.dll: Can't find dependent libraries |
|
|
Newbie
Joined: 23 Oct 2006 Posts: 2
|
Hi All
Am writing a Java MQSeries Client application using MQSeries Base Java. I've installed "IBM MQSeries classes for Java and Java Message Service". The program compiles perfectly. However, when it tries to create a new instance of MQQueueManager using qMgr = new MQQueueManager(qManager);, I get the following error
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\WSAD5\runtimes\base_v51\java\jre\bin\mqjbnd04.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2014)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1880)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:885)
at com.ibm.mq.MQSESSION.loadLib(MQSESSION.java:456)
at com.ibm.mq.server.MQSESSION$1.run(MQSESSION.java:179)
at java.security.AccessController.doPrivileged(Native Method)
at at com.ibm.mq.server.MQSESSION.<clinit>(MQSESSION.java:175).null(Unknown Source)
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:67)
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:330)
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 com.fmr.fims.cachecleanup.MQSample.<init>(MQSample.java:37)
at com.fmr.fims.cachecleanup.MQSample.main(MQSample.java:31)
Any suggestions how to remove it?
Thanks
Achint |
|
Back to top |
|
 |
Vitor |
Posted: Mon Oct 23, 2006 12:30 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
What version of MQ? What CSD level? What platform? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Oct 23, 2006 12:33 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
But just looking at the error, I'd theorise you have a problem with your path (or classpath). _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Oct 23, 2006 1:47 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Yeah, the way you're doing it, you're trying to establish a bindings connection. And apparently, you don't have all the right stuff on the classpath or path.
But also maybe you didn't install a server and create a local queue manager - so establishing a bindings connections isn't going to help much.
The thing to do is to set MQ_INSTALL_ROOT in your WAS admin console to point ot where you have MQ installed. That will take care of most or all of your classpath/path problems. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
achintk |
Posted: Mon Oct 23, 2006 2:01 am Post subject: |
|
|
Newbie
Joined: 23 Oct 2006 Posts: 2
|
I am trying to make standalone application in Java (JDK1.4). I've installed MQ Client (5.2.2) on WinXP and MQ Server is installed on a Sun Solaris machine and its version is
PTF Memo for: IBM WebSphere MQ for Sun Solaris Version 5.3
Service Level 5.3.0.11 (Fix Pack CSD11)
Regards
Achint |
|
Back to top |
|
 |
Vitor |
Posted: Mon Oct 23, 2006 2:17 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
achintk wrote: |
I am trying to make standalone application in Java (JDK1.4). I've installed MQ Client (5.2.2) on WinXP |
Get a better client. The 5.2.n versions sucked when it came to Java.
You should (for so many reasons) be using the one that matches your server version.
The 5.3.11 client is much, much better. Also 5.3 had Java support built in, so you can ditch the MA88 support pac _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Oct 23, 2006 3:17 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
If you're trying to build a standalone Java program, then why was it complaining about a path that included a WSAD based WAS Test Engine? (C:\WSAD5\runtimes\base_v51\)
As Vitor says, install the v5.3 client at FP/CSD level 12. Don't bother with anything lower.
Also, as I already said, your CODE is trying to establish a bindings connection, and you can't do that if the server is remote. You need to use different parameters to tell the Java API to establish a client connection.
Those parameters are clearly documented in the Using Java manual. If you want to continue writing MQ java programs, you will need to know how to find things in that manual - so if you don't know how to find where the section on establishing a connection is then you should learn that first. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
skulkarni |
Posted: Tue Oct 24, 2006 7:53 pm Post subject: Set LIBRARY_PATH |
|
|
Newbie
Joined: 03 May 2006 Posts: 1
|
set LIBRARY_PATH=<MQ_Install_Path>/java/lib |
|
Back to top |
|
 |
Vitor |
Posted: Tue Oct 24, 2006 11:42 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Said it was a path problem! I got a Java problem! Yay me!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|