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 » Exception in thread "main" java.lang.UnsatisfiedLi

Post new topic  Reply to topic
 Exception in thread "main" java.lang.UnsatisfiedLi « View previous topic :: View next topic » 
Author Message
syangloo
PostPosted: Sun Nov 17, 2002 9:47 pm    Post subject: Exception in thread "main" java.lang.UnsatisfiedLi Reply with quote

Centurion

Joined: 01 Oct 2002
Posts: 120
Location: Kuala Lumpur

I hit error message as below. My OS is HPUX11i, MQSI2.1, MQSeries 5.2 and AMI 1.2.1 and I try to run the AMI java program.

Below is the PATH and CLASSPATH I export in to the environment before I run the program.

PATH=$PATH:/opt/java1.3/bin
PATH=$PATH:/opt/mqm/bin
PATH=$PATH:/opt/mqm/java/lib
PATH=$PATH:/opt/mqm/lib
PATH=$PATH:/opt/mqm/amt/samp/java/bin
PATH=$PATH:/opt/java1.3/jre/bin
PATH=$PATH:/opt/mqm/amt
export PATH

export CLASSPATH=/opt/mqm/amt/samp/java/bin/com.ibm.mq.amt.samples.jar:/opt/mqm/java/lib/com.ibm.mq.amt.jar:/opt/java

Run the samples program

cd /opt/mqm/amt/samp
java com.ibm.mq.amt.samples.SendForget
>>> START AMI Sample SendForget
create()

Quote:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/mqm/lib/libamtJava.sl: specified file is not a
shared library, or a format error was detected.


at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.ibm.mq.amt.AmNativeTracer.<init>(AmNativeTracer.java:51)
at com.ibm.mq.amt.AmSession.<init>(AmSession.java:9
at com.ibm.mq.amt.AmSessionFactory.createSession(AmSessionFactory.java:110)
at com.ibm.mq.amt.samples.SendForget.create(SendForget.java:137)
at com.ibm.mq.amt.samples.SendForget.main(SendForget.java:105)

Any lib file, environment i need to check or any patch i need to install?
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
bower5932
PostPosted: Mon Nov 18, 2002 10:58 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I've never used the AMI, but I believe you need to put the library where libamtJava.sl is in your SHLIB_PATH.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Debashism
PostPosted: Fri Dec 13, 2002 8:39 pm    Post subject: format error Reply with quote

Newbie

Joined: 06 Aug 2002
Posts: 8

Hi,
Just issue this command in HP-unix and see

chatr <sl file>
or ldd libamtJava.sl

the dependent files for this libamtjava.sl file will be displayed

check which file is exactly giving this error..

the link files should be compatible both for RISC1 and RISC2 architecture..

to be more precise the link files compiled in RISC1 will not execute in RISC2
so these link files has to be recompiled using the option _DAPORTABLE


hope this gives u some idea..

Thanks
Sridhar
Back to top
View user's profile Send private message
syangloo
PostPosted: Mon Dec 16, 2002 10:26 pm    Post subject: Reply with quote

Centurion

Joined: 01 Oct 2002
Posts: 120
Location: Kuala Lumpur

Sorry for the late reply and thanks for you help / opinion.

We find out the erro is from the AMI library file is not supported RISC 1.1 (this old machine is in RISC1.1).

The way to solve this problem is

- Ask IBM AMI support to compile the library file with option portable (support RISC1.1 and 2.0)
- Change the new machine in RISC2.0

Regards
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Exception in thread "main" java.lang.UnsatisfiedLi
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.