Re: [tcljava-user] Executing tcl script from java using Interp,need , ,help about classpath
Brought to you by:
mdejong
From: Mo D. <md...@cy...> - 2001-04-01 01:36:13
|
On Fri, 30 Mar 2001, Ying Jin wrote: > We created a Java program that has these lines of code. The code does not work for us and the problem appears to be the line that creates the new Interp object. > > We want to be able to call Interp.eval( ) from the Java program, sending it either a filename with tcl script or a string with a tcl command. The eval method of the Interp object is documented in the following html file > from the documentation: > C:\unzipped\tclBlend126\tclBlend1.2.6\docs\TclJavaLib\Eval.htm > I hope this clarifies what we are trying to do. At the moment, we are just trying to get the example from the documentation to work. It sounds like you are trying to load Tcl Blend into a JVM process. That is not supported in the 1.2 release of Tcl Blend. > Are you implying that creating and calling Interp from Java does not work? Yes. > We are confused when you say "That is all that is supported in version > 1.2." Do you mean Java 1.2 or TclBlend 1.2? What do you mean by 1.3 > version in the CVS? Tcl Blend 1.2. The 1.3 version in the CVS is a bit closer to working in this scenario but more testing and debugging is needed. Everything should work just fine if you start Tcl first and then load the JVM into a Tcl process. Mo |