java调用外部应用程序

来源:互联网 发布:vue.js和node.js区别 编辑:程序博客网 时间:2024/04/30 09:55
  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();
  }