Re: [tcljava-dev] Please help in loading a class...
by Patrick Finnegan other posts by this author
Mar 13 2007 3:12PM messages near this date
[tcljava-dev] Please help in loading a class...
|
Re: [tcljava-dev] Please help in loading a class...
On Tuesday 13 March 2007 07:19, Georgios Petasis wrote:
> Hi all,
>
> I am using tclblend 1.4.0 to load JVM from Tcl. However, when I try to
> load a specific class I got an error:
>
> java::call {enrichment.EnrichmentManager$Test3} main
> Class "enrichment.EnrichmentManager.Test3" is not accessible
>
Have you built the classpath inside the script?
# 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
puts "\nTCL_CLASSPATH = [ array get env TCL_CLASSPATH ]\n"
Have you imported the required classes?
# import required classes
java::import com.ibm.mq.jms.MQQueueConnectionFactory
java::import com.ibm.mq.jms.services.ConfigEnvironment
java::import com.ibm.mq.jms.JMSC
java::import com.ibm.mq.jms.MQQueueSession
java::import com.ibm.mq.jms.MQQueueSender
# instanciate MQQueueConnectionFactoryI object.
set MQQueueConnectionFactoryI [ java::new MQQueueConnectionFactory ]
Patrick.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
tcljava-dev mailing list
tcljava-dev@[...].net
https://lists.sourceforge.net/lists/listinfo/tcljava-dev
Thread:
Georgios Petasis
Patrick Finnegan
Georgios Petasis
Mo DeJong
|