2016-09-17 8 views

答えて

0

次のコードスニペットでは、 "firefox" Webブラウザを起動します。exec()の構文は、Javaコードから起動するシェルコマンドです。

import java.io.IOException; 

public class App { 

    public static void main(String[] args) throws IOException { 
     Runtime runtime=Runtime.getRuntime(); 
     Process p=runtime.exec("firefox"); 
    } 
} 
関連する問題