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);
Java Runtime.getRuntime().exec 执行带空格命令解决办法,布布扣,bubuko.com
时间: 2024-12-26 06:21:50