hi,
my code goes like this:
Runtime rt = Runtime.getRuntime();
// cmd == "cmd.exe /C java =Xms2M =Xmx16M Sth"
Process proc = rt.exec(cmd);
Now i want to kill this process after a second, and get his output and error into a string variables.
How to do that ?
In my case: I have a infinitive loop in compiled class Sth. I'm starting it and then, after one second i want to kill it.
//I'm testing it on Win XP then Debian.
thx Tzim