使用此代码时出现运行时异常
Runtime rt = Runtime.getRuntime();
System.out.println("Executing " + "uname -a");
Process x = rt.exec("ping IP Address of system");
BufferedReader stdInput =
new BufferedReader(new InputStreamReader(x.getInputStream()));
BufferedReader stdError =
new BufferedReader(new InputStreamReader(x.getErrorStream()));
String line = null;
while ((line = stdInput.readLine()) != null) {
System.out.println(line);
}
x.waitFor();