ProcessBuilder: start and manage processes (programs) : ProcessBuilder « Development « Java Tutorial






import java.io.IOException;

public class MainClass {
  public static void main(String args[]) throws IOException {

    ProcessBuilder proc = new ProcessBuilder("notepad.exe", "testfile");
    proc.start();
  }
}








6.26.ProcessBuilder
6.26.1.ProcessBuilder: start and manage processes (programs)
6.26.2.Use of ProcessBuilder that duplicates the functions of the DoRuntime example: