processbuilder执行jar

时间:2013-06-06 02:29:41

标签: java eclipse processbuilder

我正在尝试使用流程构建器执行jar,但它在每个术语之间使用逗号

ProcessBuilder processBuilder=new ProcessBuilder("Java","-jar","D:/tools/censeo.jar","SourcePath" +javaFileDir+ "-OutputType","xml","OutputPath"+javaFileDirectory+"\"");

Process process=processBuilder.start();

使用processbuilder执行jar的格式是否正确?

0 个答案:

没有答案