MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / getJavaExecutable

Method getJavaExecutable

Utils/src/eu/the5zig/util/Utils.java:601–618  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

599 }
600
601 public static String getJavaExecutable() {
602 String javaHome = System.getProperty("java.home");
603 if (javaHome == null) {
604 return "java";
605 }
606 String path = javaHome;
607 switch (getPlatform()) {
608 case WINDOWS:
609 case MAC:
610 case LINUX:
611 case SOLARIS:
612 path += File.separator + "bin" + File.separator + "java";
613 break;
614 default:
615 return "java";
616 }
617 return path;
618 }
619
620 public static String lineSeparator() {
621 return System.getProperty("line.separator");

Callers 2

applyOptifinePatchMethod · 0.95
launchMethod · 0.95

Calls 1

getPlatformMethod · 0.95

Tested by

no test coverage detected