How to use exec() twice?
Hi,
I'd like to invoke two execution files with the command, exec(), but it's not working correctly. For example, I'd like to execute a1.exe and a2.exe at the same time, but the second one is not executed.
public class Hello {
public static void main(String argv[]) throws IOException {
Process p = Runtime.getRuntime().exec("c:\\a1.exe");
p = Runtime.getRuntime().exec("c:\\a2.exe
");
}
}
What's the problem of it? Is there any solution for it? I appreciate your help.
Thanks.
- Won

