Essentially, I\'m making a small program that\'s going to install some software, and then run some basic commands afterwards to prep that program. However, what is happening
you can use Process.waitFor() method
and the doc says
Causes the current thread to wait, if necessary, until the process represented by this Process object has terminated. This method returns immediately if the subprocess has already terminated. If the subprocess has not yet terminated, the calling thread will be blocked until the subprocess exits.