Runtime.getRuntime.exec hangs

Note that the Scala standard lib provides more convenient ways of handling external process I/O, see e.g. ProcessIO.