@Override
	protected List<File> getJavaRootInstallDirs() {
		List<File> javaRootInstallDirs = new ArrayList<>();
		javaRootInstallDirs.add(new File("/Library/Java/JavaVirtualMachines"));
		return javaRootInstallDirs;
	}
Class responsible for finding Java installations on a Mac system.
GhidraBuild/LaunchSupport/src/main/java/ghidra/launch/MacJavaFinder.java