| Author | 
		  Message
		 | 
		
		  | shogan2003 | 
		  
		    
			  
				 Posted: Wed May 19, 2004 11:03 am    Post subject: no mqjbnd05 in java.library.path | 
				     | 
			   
			 
		   | 
		
		
		   Centurion
 
 Joined: 03 Jul 2003 Posts: 133 Location: London 
  | 
		  
		    
			  
				Hi
 
 
I am adapting a copy of code for Java-MQClient to run in binding mode. Java complains about missing mqjbnd05 from the java library path at run-time.
 
 
I've seen threads on this very subject and checked them quite closely. 
 
I have set PATH to include /opt/mqm/java/lib, as that directory contains a 
 
library file libmqjbnd05.so
 
 
 
Is it a CLASSPATH issue originating in the compile process or just a CLASSPATH/PATH issue at run-time ?
 
 
Thanks in advance
 
Sean Hogan _________________ MQSI2 certified specialist
 
MQSeries certified specialist | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | JasonE | 
		  
		    
			  
				 Posted: Wed May 19, 2004 11:24 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 03 Nov 2003 Posts: 1220 Location: Hursley 
  | 
		  
		    
			  
				| Depending on the platform, I dont think its path - try one of  LIBPATH (aix, z/OS), SHLIB_PATH (HP), LD_LIBRARY_PATH (Linux / Solaris)... | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | RogerLacroix | 
		  
		    
			  
				 Posted: Wed May 19, 2004 11:34 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 15 May 2001 Posts: 3265 Location: London, ON  Canada 
  | 
		  
		    
			  
				It's a runtime problem.  Time to RTM.
 
 
Download the WebSphere MQ Using Java manual and go to chapter 2.  Make sure you have done everything on pages 10-12.
 
 
Regards,
 
Roger Lacroix _________________ Capitalware: Transforming tomorrow into today.
 
Connected to MQ!
 
Twitter | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | shogan2003 | 
		  
		    
			  
				 Posted: Thu May 20, 2004 1:15 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Centurion
 
 Joined: 03 Jul 2003 Posts: 133 Location: London 
  | 
		  
		    
			  
				I added /opt/mqm/java/lib to LD_LIBRARY_PATH to allow java to "see" the library file libmqjbnd05.so.
 
 
Then the program runs. _________________ MQSI2 certified specialist
 
MQSeries certified specialist | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | helmi03 | 
		  
		    
			  
				 Posted: Tue Aug 29, 2006 7:11 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 29 Aug 2006 Posts: 1
  
  | 
		  
		    
			  
				my solution:
 
export MQ_JAVA_LIB_PATH=$MQ_JAVA_LIB_PATH:/opt/mqm/java/lib/
 
 
refer: page 10, WebSphere MQ Using Java
 
How I debug (output from command line):
 
# ./setjmsenv
 
MQ_JAVA_INSTALL_PATH is /opt/mqm/java
 
MQ_JAVA_DATA_PATH is /var/mqm
 
MQ_JAVA_LIB_PATH is /opt/mqm/java/lib
 
CLASSPATH is :/opt/mqm/java/lib/com.ibm.mq.jar:/opt/mqm/java/lib/com.ibm.mqjms.jar:/opt/mqm/samp/java/
 
# echo $MQ_JAVA_LIB_PATH
 
 
# export MQ_JAVA_LIB_PATH=$MQ_JAVA_LIB_PATH:/opt/mqm/java/lib/
 
# echo $MQ_JAVA_LIB_PATH
 
:/opt/mqm/java/lib/
 
# ./postcard &
 
 
NOTE: tested on opensuse-10.1 _________________ -helmi03- | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |