News

The old way of spawning a process Before Java 5, the only way to spawn a new process was to use Runtime.getRuntime().exec(). ProcessBuilder is a much better alternative. Compile Listing 1 as follows: ...