Easier to use the new ProcessBuilder class. There are several pitfalls in Runtime.exec that you need to remember in order for everything to work correctly. For example, you must ensure that input and output streams are handled correctly.
I suggest you google for an example using ProcessBuilder.
Kayaman
source share