Running program from java(tcl)

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top