java 调用外部应用程序

来源:互联网 发布:macos 需要linux 编辑:程序博客网 时间:2024/04/30 15:10

 String path = "C:/Documents and Settings/Administrator/桌面/SPX Editor/ge.exe";
  try

  {
     Runtime.getRuntime().exec("cmd /c start excel  /"" + path + "/"");
  } catch (IOException e) {
     e.printStackTrace();
  }