Here you can find the source of runCommand(String command[])
public static void runCommand(String command[]) throws IOException
//package com.java2s; /* This program is released under European Union Public License. * for details please refer to the file LICENSE * /*from w ww . j a v a 2s . c o m*/ * Disclaimer: the program comes "as is" and with absolutely no warranty * * ? 2010,2011 TCM */ import java.io.IOException; public class Main { public static void runCommand(String command[]) throws IOException { new ProcessBuilder(command).start(); } }