@Override
	protected File getJreHomeFromJavaHome(File javaHomeDir) {
		if (javaHomeDir.getName().startsWith("jdk")) {
			return new File(javaHomeDir.getParentFile(),
				javaHomeDir.getName().replaceFirst("jdk", "jre"));
		}
		return javaHomeDir;
	}
Class responsible for finding Java installations on a Windows system.
GhidraBuild/LaunchSupport/src/main/java/ghidra/launch/WindowsJavaFinder.java