IOException CreateProcess error=21

如题报错,“process = Runtime.getRuntime().exec(execString);”这一句报的。帮忙看看是什么问题?代码如下:
[code="java"]
private String processExcelMacro(String processingProgramPath,
String fileName, String excelMacroName)
throws ProcessCommandException {
PropertyConfigurator.configure("log4j.properties");
String execString = processingProgramPath + " \"" + fileName + "\" "
+ excelMacroName;
java.lang.Process process = null;
try {
process = Runtime.getRuntime().exec(execString);
logger.debug("Process Command :" + execString);
process.waitFor();
process.destroy();
return getProcessReturnString(process.getInputStream(),
process.getErrorStream());
} catch (Throwable ex) {
logger.error("ExcelMacroProgramInvoke.processFileByName|Do \""
+ execString + "\" Error|Error Message:" + ex);
throw new ProcessCommandException(ex);
} finally {
if (process != null) {
process.destroy();
}
}
}
[/code]

是不是文件没找到呀?路径有问题

那得看看execString 的具体值是什么了,能帖出来看看吗?

把execString的内容在命令行里试一下也能探个究竟。