Skip to content

Commit 0e638b5

Browse files
committed
JDK 25 compat
1 parent 076b2d8 commit 0e638b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jay/src/jay/JRE.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
public class JRE {
2020

2121
public static String jre() {
22-
RuntimeMXBean mxbean = ManagementFactory.getPlatformMXBean(RuntimeMXBean.class);
23-
String java = mxbean.getBootClassPath().split(quote(separator)+"lib",2)[0]+separator+"bin"+separator+"java";
22+
String javaHome = System.getProperty("java.home");
23+
String java = javaHome + separator + "bin" + separator + "java";
2424
return new File(java).exists() ? java : java + "w.exe";
2525
}
2626

0 commit comments

Comments
 (0)