I know i can source the script, but since i'm trying to execute a script
that loads a dll's, i have to use exec. Tclblend doesn't help me so i've
been using jacl..
If I do the following java code, there's nothing wrong..so is it the jvm
still?
Process myProcess = Runtime.getRuntime().exec(cmd);
-----Original Message-----
From: tcl...@li...
[mailto:tcl...@li...]On Behalf Of Mo DeJong
Sent: Monday, July 30, 2001 2:36 PM
To: tcl...@li...
Subject: Re: [tcljava-user] exec command with Visual Cafe 4.5
On Fri, 27 Jul 2001, Tam Huynh wrote:
> Hello,
>
> Has anybody use VisualCafe with jacl? I have to switch development
> environment from Forte4java to VCafe. I'm having problems running the
exec
> command..The error i get is "c:\winnt\system32\command.com...The NTVDM CPU
> has encountered an illegal instruction" I was able to use the same exec
> command in forte so i'm confused..I have even set the environment option
> path to point to the directory of the tclsh83.exe..
>
> The command is:
> interp.eval("exec tclsh83 D:/tcl/bin/scripts/guicopysend.tcl");
I am not really sure what you are trying to do here but most
Tcl scripts can be run directly in Jacl. If you are just
using it to exec the C version of Tcl it seems like a real
waste.
As far as Runtime.exec() goes, it is really rather broken under
Windows. Since the Java API itself is so broken, there
is really nothing Jacl can do to work around it. This
is a problem with the JVM+libs not Jacl. Try to
reproduce it with plain Java code and try to get
your JVM vendor to fix it.
Sorry
Mo
_______________________________________________
tcljava-user mailing list
tcl...@li...
http://lists.sourceforge.net/lists/listinfo/tcljava-user
|