again
Runtime.getRuntime().exec(cmds);
 execInternal(cmdarray, envp, path);

 private native Process execInternal(String cmdarray[], String envp[], String path)
  throws IOException;

 /**
     * Executes the specified string command in a separate process.
     * <p>
     * The <code>command</code> argument is parsed into tokens and then
     * executed as a command in a separate process. The token parsing is
     * done by a {@link java.util.StringTokenizer} created by the call:
     * <blockquote><pre>
     * new StringTokenizer(command)
     * </pre></blockquote>
     * with no further modifications of the character categories.
     * This method has exactly the same effect as
     * <code>exec(command, null)</code>.
     *
     * @param      command   a specified system command.
     * @return     a <code>Process</code> object for managing the subprocess.
     * @exception  SecurityException  if a security manager exists and its 
     *             <code>checkExec</code> method doesn't allow creation of a subprocess.
     * @exception  IOException if an I/O error occurs
     * @exception  NullPointerException if <code>command</code> is
     *             <code>null</code>
     * @exception  IllegalArgumentException if <code>command</code> is empty
     *            
     * @see        java.lang.Runtime#exec(java.lang.String, java.lang.String[])
     * @see     java.lang.SecurityManager#checkExec(java.lang.String)
     */
posted on 2008-10-16 14:31 charlie's logic 阅读(758) 评论(0)  编辑  收藏 所属分类: java/j2ee

只有注册用户登录后才能发表评论。


网站导航:
 

统计