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