master
zhang chengzhi 2024-09-05 02:19:27 +08:00
parent bcf46b9adf
commit aaf1175196
1 changed files with 2 additions and 2 deletions

View File

@ -135,8 +135,8 @@ public class RuleEngineVersionServiceImpl extends ServiceImpl<RuleEngineVersionM
OutputStream second = null; // 程序的输出 null 用 system.out
OutputStream third = null; // 程序的错误输出 .,null 用 system.err
// 程序编译参数 注意 我们编译目录是我们的项目目录
String[] strings = {"-classpath","home/lib/","-verbose","-d", engineWorkClassPath, engineWorkSourcePath+className+Suffix_JAVA};
String[] strings = {"-classpath","home/lib/","-verbose","-d", engineWorkSourcePath, engineWorkSourcePath+className+Suffix_JAVA};
log.info("规则引擎的编译参数[]",Arrays.toString(strings));
// 0 表示成功, 其他表示出现了错误
System.out.println(Arrays.toString(strings));
int i = javaCompiler.run(first, second, third, strings);