--9--10
parent
31be622785
commit
c28de5eee2
|
@ -13,7 +13,7 @@ public class JavaClass {
|
||||||
String[] strings = {"-classpath", "/home/lib", "-verbose", "-d", "/home/lib", "/home/" + fileName + ".java"};
|
String[] strings = {"-classpath", "/home/lib", "-verbose", "-d", "/home/lib", "/home/" + fileName + ".java"};
|
||||||
int result = compiler.run(null, null, null, strings);
|
int result = compiler.run(null, null, null, strings);
|
||||||
if (result == 0) {
|
if (result == 0) {
|
||||||
log.info("编译成功,生成的.class文件位于源代码同目录");
|
log.info("编译成功,生成的.class文件位于源代码同目录"+"-classpath "+"/home/" + fileName + ".class");
|
||||||
} else {
|
} else {
|
||||||
log.info("编译失败");
|
log.info("编译失败");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue