Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

My java application doesn't wait for my runtime process to finish

843798May 18 2006 — edited May 31 2006
Hey 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 28 2006
Added on May 18 2006
3 comments
340 views