My java application doesn't wait for my runtime process to finish
843798May 18 2006 — edited May 31 2006Hey everybody.
My problem is the following: In my Java application, I start a .exe program using Runtime rt = Runtime.getRuntime();
Process proc = rt.exec(command);
int exitVal = proc.waitFor();
...
With the command explorer.exe "http://www.***.com", the java application doesn't wait for the process to end, although there's the proc.waitFor() instruction in the code, and goes on... I watched for the output and error stream, but there's nothing so the problem shouldn't be that...
Message was edited by:
JustAnotherJavaUser