Re: [tcljava-user] Suitability of Tcl Blend
Brought to you by:
mdejong
From: Tom P. <tpo...@ny...> - 2009-08-28 15:38:52
|
On Fri, Aug 28, 2009 at 10:02:14AM +0000, Seamus McKenna wrote: > We have a test > framework in Java and would like to directly call legacy TCL scripts. These scripts include packages like Expect so > I am not sure that JACL is suitable. That?s why I?m looking at TclBlend. I see that it?s possible to call java directly > from TCL using ?package require java? e.g. java::import java.net.InetAddress. But is it possible to carry out standard TCL > commands from JAVA? I don't use TclBlend, so I can't comment on its suitability for you. Yes, the 'java' package for TclBlend and Jacl allow your Tcl scripts to interact with Java objects. Jacl is certainly quite easy to integrate into Java. Expect has been ported to run in Jacl, so it likely depends on which other extensions your Tcl scripts use. Tcl-only extensions may or may not work, depending mostly on the Tcl version for which any particular extension was written. Any extension using the 'fileevent' command won't work in Jacl (yet!) See: http://code.google.com/p/expect4j/ -- Tom Poindexter tpo...@ny... |