This is a convenience method. An invocation of the form exec(cmdarray) behaves in exactly the same way as the invocation {@link #exec(String[],String[],File) exec}(cmdarray, null, null).
@param cmdarray array containing the command to call andits arguments.
@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 cmdarray
is null
, or one of the elements of cmdarray
is null
@throws IndexOutOfBoundsException If cmdarray
is an empty array (has length 0
)
@see ProcessBuilder
|
|
|
|
|
|