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 » no mqjbnd05 in java.library.path error on XP

Post new topic  Reply to topic Goto page 1, 2  Next
 no mqjbnd05 in java.library.path error on XP « View previous topic :: View next topic » 
Author Message
Surfer
PostPosted: Sun Mar 07, 2004 7:27 pm    Post subject: no mqjbnd05 in java.library.path error on XP Reply with quote

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
View user's profile Send private message Send e-mail
r2504
PostPosted: Mon Mar 08, 2004 1:19 am    Post subject: Reply with quote

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
View user's profile Send private message
JasonE
PostPosted: Mon Mar 08, 2004 2:11 am    Post subject: Reply with quote

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
View user's profile Send private message
r2504
PostPosted: Mon Mar 08, 2004 3:47 am    Post subject: Reply with quote

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
View user's profile Send private message
Surfer
PostPosted: Mon Mar 08, 2004 4:21 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Mon Mar 08, 2004 5:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Surfer
PostPosted: Mon Mar 08, 2004 8:29 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
r2504
PostPosted: Mon Mar 08, 2004 11:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Tue Mar 09, 2004 6:18 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Surfer
PostPosted: Tue Mar 09, 2004 11:36 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
EddieA
PostPosted: Tue Mar 09, 2004 11:55 am    Post subject: Reply with quote

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
View user's profile Send private message
Surfer
PostPosted: Tue Mar 09, 2004 12:05 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
vennela
PostPosted: Tue Mar 09, 2004 12:22 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Surfer
PostPosted: Tue Mar 09, 2004 1:51 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
vennela
PostPosted: Tue Mar 09, 2004 2:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » IBM MQ Java / JMS » no mqjbnd05 in java.library.path error on XP
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.