全部
This commit is contained in:
@ -139,7 +139,7 @@ public class SdkUtil {
|
||||
|
||||
// 判断操作系统类型
|
||||
boolean isWindows = System.getProperty("os.name").toLowerCase().contains("win");
|
||||
// 构建JDK路径:根目录/jdk/bin/java(或java.exe)
|
||||
// 构建JDK路径: 根目录/jdk/bin/java(或java.exe)
|
||||
String javaRelativePath = "jdk" + File.separator + "bin" + File.separator +
|
||||
(isWindows ? "java.exe" : "java");
|
||||
return new File(rootDir, javaRelativePath).getAbsolutePath();
|
||||
|
||||
Reference in New Issue
Block a user