M
macadada
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
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