Change java dependency for RPM based distributions.

This allows other JDKs than the openjdk one to be used.