K
knguyen
Hi all,
I am having a problem using Runtime.getRuntime.exec(). My codes are as
follow
import java.io.*;
public class Test {
public static void main(String[] args) throws Exception {
Process p = Runtime.getRuntime().exec(aCommand);
while (true) {}
}
}
for some reason, the command is not executed until the program exits.
This causes trouble only in Windows because I tested with Linux and it
works fine.
Thanks you
I am having a problem using Runtime.getRuntime.exec(). My codes are as
follow
import java.io.*;
public class Test {
public static void main(String[] args) throws Exception {
Process p = Runtime.getRuntime().exec(aCommand);
while (true) {}
}
}
for some reason, the command is not executed until the program exits.
This causes trouble only in Windows because I tested with Linux and it
works fine.
Thanks you