RR: factored out java install script.