public static String resolveInJavaHome(@Nonnull String cmd, @Nonnull Jdk jdk) {
		if (jdk.isInstalled()) {
			Path jdkHome = jdk.home();
			if (Util.isWindows()) {
				cmd = cmd + ".exe";
			}
			return jdkHome.resolve("bin").resolve(cmd).toAbsolutePath().toString();
		}
		return cmd;
	}
Returns the Path to JAVA_HOME

@return A Path pointing to JAVA_HOME or null if it isn't defined
src/main/java/dev/jbang/util/JavaUtil.java