|   | 
	 
  
    | 
RSS Feed - WebSphere MQ Support
 | 
RSS Feed - Message Broker Support
 |   
 
  
	     | 
	 | 
   
 
  
	|  Exception in thread "main" java.lang.UnsatisfiedLi | 
	« View previous topic :: View next topic »  | 
   
  
  	
	  
		
		
		  | Author | 
		  Message
		 |  
		
		  | syangloo | 
		  
		    
			  
				 Posted: Sun Nov 17, 2002 9:47 pm    Post subject: Exception in thread "main" java.lang.UnsatisfiedLi | 
				     | 
			   
			 
		   | 
		 
		
		   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 | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | bower5932 | 
		  
		    
			  
				 Posted: Mon Nov 18, 2002 10:58 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		    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 | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | Debashism | 
		  
		    
			  
				 Posted: Fri Dec 13, 2002 8:39 pm    Post subject: format error | 
				     | 
			   
			 
		   | 
		 
		
		   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 | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | syangloo | 
		  
		    
			  
				 Posted: Mon Dec 16, 2002 10:26 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   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 | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | 
		    
		   | 
		 
	   
	 | 
   
 
  
	     | 
	 | 
	Page 1 of 1 | 
   
 
 
 
  
  	
	  
		
		  
 
  | 
		  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
  | 
  		 
	   
	 | 
   
 
  	 | 
	  |