Add check for Fedora and install appropriate java version.