Hey i need to run a tcl server from java, its a very simple server that
i jsut need to run, i dotn need to do anything with it dont need to
input or output anything from it, just want the stupid tign to open lol
Heres what im currently doing but nothing is happening when i run the
code:
public class execDir {
public static void main(String args[]) {
try {
String [] env= {"TCL_LIBARAY=C:\\Tcl\\lib\\tcl8.4\\init.tcl"};
String [] arg ={"tclsh84.exe", "C:\\ClassNode.tcl"};
Process p = Runtime.getRuntime ().exec(arg, env);
} catch(Exception ioe) { System.out.println(ioe); }
}
}
I'm quite a Noob with programing so i appreciate your help
Roedy Green - 24 Dec 2005 11:40 GMT
>String [] env= {"TCL_LIBARAY=C:\\Tcl\\lib\\tcl8.4\\init.tcl"};
Check the spelling of LIBRARY

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Roedy Green - 24 Dec 2005 11:42 GMT
>String [] arg ={"tclsh84.exe", "C:\\ClassNode.tcl"};
if tclsh84.exe is not on the path this won't work. You need a fully
qualified name.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
da_virus - 24 Dec 2005 13:03 GMT
ahh thank u! solved everytin works perfectly.