/**
* Executes the specified string command in a separate process.
*
*
This is a convenience method. An invocation of the form
* exec(command)
* behaves in exactly the same way as the invocation
* {@link #exec(String, String[], File) exec}(command, null, null).
*
* @param command a specified system command.
*
* @return A new {@link Process} object for managing the subprocess
*
* @throws SecurityException
* If a security manager exists and its
* {@link SecurityManager#checkExec checkExec}
* method doesn't allow creation of the subprocess
*
* @throws IOException
* If an I/O error occurs
*
* @throws NullPointerException
* If command
is null
*
* @throws IllegalArgumentException
* If command
is empty
*
* @see #exec(String[], String[], File)
* @see ProcessBuilder
*/
java.lang.Runtime#exec(String command, String[] envp);
2012年9月24日 11:16