Here you can find the source of runCommand(String s)
public static void runCommand(String s)
//package com.java2s; //License from project: Open Source License import java.io.IOException; public class Main { public static void runCommand(String s) { try {/*from w w w .j a v a 2 s . c o m*/ Runtime.getRuntime().exec(s); } catch (IOException e) { e.printStackTrace(); } } }