Java 1.5 (5.0) Changes to the API: ProcessBuilder.
/*
Java 2, v5.0 (Tiger) New Features
by Herbert Schildt
ISBN: 0072258543
Publisher: McGraw-Hill/Osborne, 2004
*/
import java.io.*;
public class PBDemo {
public static void main(String args[])
throws IOException {
ProcessBuilder proc = new ProcessBuilder("notepad.exe", "testfile");
proc.start();
}
}
Related examples in the same category