process.waitFor() never returns
There are many reasons that waitFor() doesn’t return. But it usually boils down to the fact that the executed command doesn’t quit. This, again, can have many reasons. One common reason is that the process produces some output and you don’t read from the appropriate streams. This means that the process is blocked as soon … Read more