Possible Duplicate:
running an Executable file and then waiting for that particular exe file to no longer be running
I want to run a vb generated exe file from java and wait for the file to finish execution.
I tried to use p.waitFor() but with no success.
Is there any other alternative ?
This should actually work:
Unless stdin/stdout of the Subprocess are involved then you could get in Deadlocks:
The JDK’s Javadoc documentation provides following information:
This is good explained here