String command = OpenOffice_HOME + "program\\soffice -headless -accept=\"socket,host=127.0.0.1,port=8100;urp;\" -nofirststartwizard "; command = "cmd /c start "+command.replaceAll(" ","\" \""); Process pro = Runtime.getRuntime().exec(command);
本文共 335 字,大约阅读时间需要 1 分钟。
String command = OpenOffice_HOME + "program\\soffice -headless -accept=\"socket,host=127.0.0.1,port=8100;urp;\" -nofirststartwizard "; command = "cmd /c start "+command.replaceAll(" ","\" \""); Process pro = Runtime.getRuntime().exec(command);
转载于:https://my.oschina.net/UpBoy/blog/292164