Run a vb generated exe file from java and wait the end of execution
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5761652/running-an-executable-file-and-then-waiting-for-that-particular-exe-file-to-no-l">running an Executable file and then waiting for that particular exe file to no longer be running</a>  </p>
</blockquote>



<p>I want to run a vb generated exe file from java and wait for the file to finish execution. </p>

<p>I tried to use <code>p.waitFor()</code> but with no success.</p>

<p>Is there any other alternative ?</p>
