Author |
Message
|
Surfer |
Posted: Sun Mar 07, 2004 7:27 pm Post subject: no mqjbnd05 in java.library.path error on XP |
|
|
 Apprentice
Joined: 14 Jun 2002 Posts: 31
|
I am using MQSeries 5.3 on XP.
But when I run the program I always get this error:
java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.path
So I added "-Djava.library.path=f:\IBM\MQ\java\ib"
as VM arguments.
But once again I got the following error :
java.lang.UnsatisfiedLinkError: F:\IBM\MQ\java\lib\: Can't find dependent libraries
Could anyone help me ?
Thank you in advance.
Best regards |
|
Back to top |
|
 |
r2504 |
Posted: Mon Mar 08, 2004 1:19 am Post subject: |
|
|
Novice
Joined: 05 Mar 2004 Posts: 22
|
I believe that is a shared library, which requires a different path to be set.
On Unix this is SHLIB_PATH, but don't know about XP. |
|
Back to top |
|
 |
JasonE |
Posted: Mon Mar 08, 2004 2:11 am Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
At a guess
path=F:\IBM\MQ\java\lib;%path%
then run pgm.
Make sure F:\IBM\MQ\bin (I assume) is also on the path |
|
Back to top |
|
 |
r2504 |
Posted: Mon Mar 08, 2004 3:47 am Post subject: |
|
|
Novice
Joined: 05 Mar 2004 Posts: 22
|
On Unix, the shared library is in /opt/mqm/java/bin (and not mqm/bin)
----
Though this doesn't matter for this thread because the poster is posting a Windows problem:
I think it is /opt/mqm/java/lib and for HP, Solaris and Linux.
For AIX it is
/usr/mqm/java/lib.
It is definitely not the bin. Let me know if somebody thinks otherwise.
-------
Vennela |
|
Back to top |
|
 |
Surfer |
Posted: Mon Mar 08, 2004 4:21 pm Post subject: |
|
|
 Apprentice
Joined: 14 Jun 2002 Posts: 31
|
I really appreciate your response but I tryed all that but still got the same error message.
Thank you once again.
Best regards |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Mar 08, 2004 5:27 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Please, double check that your PATH and CLASSPATH variables are set for the user running the program.
Also, please make sure that you are making a bindings connection on the same machine as the MQSeries Server, and not trying to make a bindings connection from a machine that only has the MQSeries Client or Java Messaging installed on it. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Surfer |
Posted: Mon Mar 08, 2004 8:29 pm Post subject: |
|
|
 Apprentice
Joined: 14 Jun 2002 Posts: 31
|
Hi,
I think that you are right and there is a problem with my path environment variale.
My path variable contains all path files I need for this program.
When I do : f:%path% to display my path variable.
It says that the path 'F:\Program ' is not reconized as internal or external command.
This is I think because one of the items that is F:\Program Files\DirName\FileName that has blanc space (between Program and Files)
Do you think that the path variable doesn't support blank space in file paths ? I am used to Linux and not with XP.
How to solve this problem ?
Thank you again.
Best regards |
|
Back to top |
|
 |
r2504 |
Posted: Mon Mar 08, 2004 11:46 pm Post subject: |
|
|
Novice
Joined: 05 Mar 2004 Posts: 22
|
Directories can be abbreviated by their first 7 characters followed by a tilde (the Spanish character) and a sequence number.
"Program files" can be replaced by "Progra~1" |
|
Back to top |
|
 |
bower5932 |
Posted: Tue Mar 09, 2004 6:18 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
You can have blanks in the path. If you simply typed %path% on your command line, that is your problem. If you want to see it, you need to either type 'path' or 'echo %path%'. I think what you did was try to execute the path statement. |
|
Back to top |
|
 |
Surfer |
Posted: Tue Mar 09, 2004 11:36 am Post subject: |
|
|
 Apprentice
Joined: 14 Jun 2002 Posts: 31
|
Yes.
But I still have the same error message.
How can I solve that.
Thanks for your help.
Best regards |
|
Back to top |
|
 |
EddieA |
Posted: Tue Mar 09, 2004 11:55 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
You still have not confirmed Jeff's questions, as the thread took off on a Windows tangent at that point:
Quote: |
Please, double check that your PATH and CLASSPATH variables are set for the user running the program.
Also, please make sure that you are making a bindings connection on the same machine as the MQSeries Server, and not trying to make a bindings connection from a machine that only has the MQSeries Client or Java Messaging installed on it. |
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
Surfer |
Posted: Tue Mar 09, 2004 12:05 pm Post subject: |
|
|
 Apprentice
Joined: 14 Jun 2002 Posts: 31
|
I set all variables. I even add the mqseries \java\lib path to both of variables (system and user, for path variable an also to CLASSPATH).
I am using MQ 5.3 server.
From local MQManager I want to put a message ton an other MQManager located in Linux machine.
Thank you once again |
|
Back to top |
|
 |
vennela |
Posted: Tue Mar 09, 2004 12:22 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
It is definitely your PATH that is messed up. How are you running your java program?
On a command line say
SET PATH=F:\IBM\MQ\java\lib;%PATH%
(assuming you have mqjbnd05.dll in the directory F:\IBM\MQ\java\lib)
See if you have an older version of the dll like mqjbnd04.dll
If you have the right dll then run your program. See if it helps. |
|
Back to top |
|
 |
Surfer |
Posted: Tue Mar 09, 2004 1:51 pm Post subject: |
|
|
 Apprentice
Joined: 14 Jun 2002 Posts: 31
|
I did all that.
It is a new installation.
There is no old dll. I made a search to confirm that. |
|
Back to top |
|
 |
vennela |
Posted: Tue Mar 09, 2004 2:06 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
On the command line where you have set PATH say
mqjbnd05.dll
What does it say |
|
Back to top |
|
 |
|