Re: [tcljava-user] NoClassDefFound
Brought to you by:
mdejong
From: Robinson, D. <Dav...@Co...> - 2007-07-12 14:03:59
|
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 Result : cannot import class "com.ibm.mq.MQC", it does not exist while executing "java::import com.ibm.mq.MQC" (procedure "checkMQ" line 6) invoked from within "checkMQ $QManager $CCSID $channel $hostname $queueName $port $traceFile $msg" (file ".//MQEx.tcl" line 124) While append x /apps/fidessa/top/commerzbank/lib/com.ibm.mq.jar works OK. Also I get this : 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) 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 -----Original Message----- From: tcl...@li... [mailto:tcl...@li...] On Behalf Of Patrick Finnegan Sent: 11 July 2007 18:55 To: A list for users of tcljava Subject: Re: [tcljava-user] NoClassDefFound On Wednesday 11 July 2007 18:25, Robinson, David wrote: > Hi, I'm using tclblend for the first time. I have successfully compiled > some java classes that reference functions in an external MQSeries .jar > file which is in a non-standard directory. However, when I try to call the > class from jtclsh I get > See the examples at the Tcl Cookbook. http://aspn.activestate.com/ASPN/Cookbook/Tcl?kwd=TclBlend Specifically: http://aspn.activestate.com/ASPN/Cookbook/Tcl/Recipe/442320 Building the classpath. # build tcl classpath 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\; append x $drive/IBM/WebSphereMQ/Java/lib/com.ibm.mqbind.jar\; set env(TCL_CLASSPATH) $x ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user ********************************************************************** This is a commercial communication from Commerzbank AG. This communication is confidential and is intended only for the person to whom it is addressed. If you are not that person you are not permitted to make use of the information and you are requested to notify <mailto:LON...@co...> immediately that you have received it and then destroy the copy in your possession. Commerzbank AG may monitor outgoing and incoming e-mails. By replying to this e-mail you consent to such monitoring. This e-mail message and any attached files have been scanned for the presence of computer viruses. However, you are advised that you open attachments at your own risk. This email was sent either by Commerzbank AG, London Branch, or by Commerzbank Corporates & Markets, a division of Commerzbank. Commerzbank AG is a limited liability company incorporated in the Federal Republic of Germany. Registered Company Number in England BR001025. Our registered address in the UK is 60 Gracechurch Street, London, EC3V 0HR. We are regulated by the Financial Services Authority for the conduct of investment business in the UK and we appear on the FSA register under number 124920. ********************************************************************** |