11111
parent
76b7ae8f1d
commit
8d1588c856
|
@ -135,7 +135,7 @@ public class RuleEngineVersionServiceImpl extends ServiceImpl<RuleEngineVersionM
|
|||
OutputStream second = null; // 程序的输出 null 用 system.out
|
||||
OutputStream third = null; // 程序的错误输出 .,null 用 system.err
|
||||
// 程序编译参数 注意 我们编译目录是我们的项目目录
|
||||
String[] strings = {"-classpath",engineWorkSourcePath,"-verbose","-d", engineWorkSourcePath, engineWorkSourcePath +"/"+className+Suffix_JAVA};
|
||||
String[] strings = {"-classpath",engineWorkSourcePath,"-verbose","-d", engineWorkSourcePath, engineWorkSourcePath +className+Suffix_JAVA};
|
||||
|
||||
// 0 表示成功, 其他表示出现了错误
|
||||
System.out.println(Arrays.toString(strings));
|
||||
|
@ -148,7 +148,7 @@ public class RuleEngineVersionServiceImpl extends ServiceImpl<RuleEngineVersionM
|
|||
}
|
||||
// 假设这是你的外部类文件路径
|
||||
String externalClassFilePath =
|
||||
engineWorkClassPath +className+Suffix_CLASS;
|
||||
engineWorkSourcePath +className+Suffix_CLASS;
|
||||
Path classFilePath = Paths.get(externalClassFilePath);
|
||||
String externalClassDir = externalClassFilePath.substring(0, externalClassFilePath.lastIndexOf('/'));
|
||||
URL[] urls = new URL[]{new File(externalClassDir).toURI().toURL()};
|
||||
|
|
Loading…
Reference in New Issue