FileDocCategorySizeDatePackage
ExecDemoSimple.javaAPI DocExample295Sat Mar 13 14:24:02 GMT 2004None

ExecDemoSimple.java

/**
 * ExecDemo shows how to execute an external program and read its output.
 */
public class ExecDemoSimple {
	public static void main(String av[]) throws Exception {
		
		// Run the "notepad" program or a similar editor
		Process p = Runtime.getRuntime().exec("kwrite");

		p.waitFor();
	}
}