Re: [tcljava-user] NoClassDefFound
Brought to you by:
mdejong
From: Patrick F. <fin...@gm...> - 2007-07-12 14:42:00
|
On 12/07/07, Robinson, David <Dav...@co...> wrote: > > Patrick, > > On Solaris 10 TCL_CLASSPATH doesn't seem to like more than one jar (or > have > I got the separator wrong ?) : > > append x /apps/fidessa/top/commerzbank/lib/com.ibm.mq.jar: > append x /apps/fidessa/top/commerzbank/lib/com.ibm.mq_websphere.jar separator should be semi colon ";" append x $drive/IBM/WebSphereMQ/Java/lib/com.ibm.mq.jar\; append x $drive/IBM/WebSphereMQ/Tools/Java/base\; append x $drive/IBM/WebSphereMQ/Java/lib/com.ibm.mqjms.jar\; append x $drive/IBM/WebSphereMQ/Tools/Java/jms\; checkMQ > > java.lang.UnsatisfiedLinkError: no mqjbnd02 in java.library.path > while executing > "java::new MQQueueManager 1" > (procedure "checkMQ" line 14) > invoked from within > "checkMQ $QManager $CCSID $channel $hostname $queueName $port $traceFile > $msg" > (file ".//MQEx.tcl" line 124) On Windows............... "The *java.lang.UnsatisfiedLinkError* is encountered when the environment variable java.library.path is not set. Sounds like you need to set "-Djava.library.path=<path to mqjbnd02.dll" You can set the java options inside the tcl blend script using tclblend_init before calling "package require java". * manual page - http://tcljava.sourceforge.net/docs/TclJava/JavaPackage.html * e.g something like: *lappend optList "-Djava.naming.provider.url\=$NAMING_PROVIDER" lappend optList "-Djava.naming.factory.initial\=$NAMING_FACTORY" lappend optList $CLIENTSOAP lappend optList "-Dwas.install.root\=$WAS_HOME" lappend optList "-Dws.ext.dirs\=$WAS_EXT_DIRS" # set tracefile properties. lappend optList "-DtraceSettingsFile\=TraceSettings.properties" puts "\n java command line options list is:\n" foreach x $optList { puts [ format "%-5s %-50s" " " $x ] } set tclblend_init $optList # call java package package require java * Do you know which jar file on Solaris has this mqjbnd02 class ? > > I have my LD_LIBRARY_PATH and PATH set to where the com.ibm.mq.jar file > is. > > Thanks for your help. > > David For Solaris have a look at these links. Search for mqjbnd02.* http://www.mail-archive.com/mqs...@ak.../msg00242.html http://www.sjg-enterpriseintegration.com/websphere%20mq%20listserver%200105.asp * |