[tcljava-dev] Re: reading a tcl Script in Java
Brought to you by:
mdejong
|
From: Shazia B. <SB...@re...> - 2001-02-12 14:52:10
|
Hello there.
I am using jacl and trying to get my interpreter to read a script. However,
I keep on getting TCL.Error "couldn't read file". I have no idea why and am
not having much luck looking on the Net. Please help! I am coding in Java
using XEmacs. My code is as follows:
try
{
this.interp.evalFile(this.filename);
this.result = this.interp.getResult().toString();
if (this.result.length() > 0)
{
display.displayResult(result);
display.displayResult("Script completed ok.");
return;
}
}
catch (TclException e)
{
int error;
error = e.getCompletionCode();
if (error == TCL.ERROR)
{
display.displayResult(interp.getResult().toString());
display.displayResult("Evaluation of script returned
TCL_ERROR");
return;
}
else
{
display.displayResult("command returned bad code: " +
error);
return;
}
}
I think it may not be the code, but the shell I am using. Any ideas will be
warmly received!
Thank you
Shazia
|