Here you can find the source of exec(String[] args)
public static Process exec(String[] args) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.IOException; public class Main { public static Process exec(String[] args) throws IOException { ProcessBuilder processBuilder = new ProcessBuilder(args); return processBuilder.start(); }/*from www. j a v a 2 s. c o m*/ }