Re: [tcljava-user] HELP...Calling TCL scripts from a Java program
Brought to you by:
mdejong
From: Mo D. <md...@cy...> - 2001-05-11 00:48:34
|
On Thu, 10 May 2001, Tam Huynh wrote: > I'm trying to execute a Tcl script from a java program using the java > Runtime class. However, the script does not execute because my log file is > never created. Should i stick to this Runtime class or use something like > Tcl blend to include a class to call the script. I'm just trying to find > the quickest solution to call the script, pass it parameters, and get > results from the script in return..Am i even calling the script the right > way? Running tclsh from a Java application should not be that hard. Trouble is, the Java implementation from Sun is really full of bugs under Windows. You could take a look at the Jacl implementation of the exec command for Tcl. I have to warn you, it is a bit scary! > Any suggestions would be appreciated!! Have you considered using Jacl? Jacl is a Tcl interp written in 100% Java. Adding Jacl to your existing Java application might be easier, you just add tcljava.jar and jacl.jar to the CLASSPATH and then create a tcl.lang.Interp object. Mo DeJong Red Hat Inc |