Author |
Message
|
murugaanandam |
Posted: Wed May 19, 2004 11:42 pm Post subject: java.lang.UnsatisfiedLinkError |
|
|
Novice
Joined: 22 Apr 2004 Posts: 19
|
dear all,
i run the mqbrowser.java sample program in MQ/Solaris(SPARC).
i got this exception
Exception in thread "main" java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1403)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:832)
at com.ibm.mq.MQSESSION.loadLib(MQSESSION.java:827)
at com.ibm.mq.server.MQSESSION$1.run(MQSESSION.java:221)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.mq.server.MQSESSION.<clinit>(MQSESSION.java:215)
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:67)
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:455)
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:155)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:153)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:189)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:171)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.java:754)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:688)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:417)
at mqbrowser.start(mqbrowser.java:106)
at mqbrowser.main(mqbrowser.java:86)
i follow the installation instruct in which in mention in this pdf (websphere MQ using JAVA).
i cant able to find a solution.
pl help me to solve this pbm
thanx in advance
regards
muruganandam |
|
Back to top |
|
 |
jsware |
Posted: Wed May 19, 2004 11:59 pm Post subject: |
|
|
 Chevalier
Joined: 17 May 2001 Posts: 455
|
Have you added the following directory to LD_LIBRARY_PATH:
LD_LIBRARY_PATH=/opt/mqm/java/lib
The Using Java guide notes that this should be appended to your existing LD_LIBRARY_PATH, not replace it.
Can you see a file called libmqjbnd05.so in the above directory?
What other directories do you have for your LD_LIBRARY_PATH setting? Does it include a directory that has libmqm.so in it?
I'm not a Solaris guy, and am transposing the names from AIX (which means the filename extensions may be incorrect - on AIX they also use .a as a dynamic library extension). _________________ Regards
John
The pain of low quaility far outlasts the joy of low price. |
|
Back to top |
|
 |
shogan2003 |
Posted: Thu May 20, 2004 1:18 am Post subject: |
|
|
Centurion
Joined: 03 Jul 2003 Posts: 133 Location: London
|
Coincidentally I had the same issue and I can confirm the previous suggestion works on Solaris.
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/mqm/java/lib _________________ MQSI2 certified specialist
MQSeries certified specialist |
|
Back to top |
|
 |
murugaanandam |
Posted: Thu May 20, 2004 3:29 am Post subject: same Exception |
|
|
Novice
Joined: 22 Apr 2004 Posts: 19
|
hi all,
thanx for reply,
i added
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/mqm/java/lib
in .dtprofile file
this line i previously added
MQ_PATH=/opt/mqm/java/lib/com.ibm.mq.jar:.:/opt/mqm/java/lib/com.ibm.mqjms.jar:/opt/mqm/java/lib/com.ibm.mqbind.jar:/opt/java/lib/connector.jar
CLASSPATH=$MQ_PATH:$CLASSPATH
export CLASSPATH
but still i got same excepiton....
regards
muruganandam |
|
Back to top |
|
 |
bower5932 |
Posted: Thu May 20, 2004 5:20 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Same problem:
http://www.mqseries.net/phpBB/viewtopic.php?t=15477
and things worked with the environment variable. I'd double-check that you actually have it set for the environment where your program is running. You could also double-check that you actually have the file on your system. |
|
Back to top |
|
 |
RogerLacroix |
Posted: Thu May 20, 2004 9:03 am Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
|
Back to top |
|
 |
|