From the documentation
Starts the program program [..] in a new process, waits for it to finish, and then returns the exit code of the process.
The calling thread freezes until the external process is finished. If you don't want this, use the method start
or startDetached
.