feat():测试

yuan
yuan 2024-09-03 14:28:54 +08:00
parent 0afe9411f9
commit c4019ee777
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ public class SourceCodeCompiler {
public static void javaCompilerFile(String filePath){
try {
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
int results = compiler.run(null, null, null, "/home/"+filePath);
int results = compiler.run(null, null, null, filePath);
System.out.println((results == 0)?"编译成功":"编译失败");
}catch (Exception e){
log.error(e);