Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questioncommandstring into tokens and
cmdarraycontaining the tokens in the
exec(cmdarray, envp). The token
StringTokenizercreated by
command- a specified system command.<dd>
envp- array of strings, each element of which
dir- the working directory of the subprocess, or
Processobject for managing the subprocess.
SecurityException- if a security manager exists and its
checkExecmethod doesn't allow creation of a subprocess.
IOException- if an I/O error occurs
NullPointerException- if
commandis
null
IllegalArgumentException- if
commandis empty * Since: : <dd>1.3 * See Also: : <dd>
exec(java.lang.String[], java.lang.String[], File),
SecurityManager.checkExec(java.lang.String)