@Override
	protected File getJdkHomeFromJavaHome(File javaHomeDir) {
		if (javaHomeDir.getName().equals("jre") && !javaHomeDir.getAbsolutePath().contains("org.eclipse.justj")) {
			return javaHomeDir.getParentFile();
		}
		return javaHomeDir;
	}
Class responsible for finding Java installations on a Linux system.
GhidraBuild/LaunchSupport/src/main/java/ghidra/launch/LinuxJavaFinder.java