Parameterize java installation commands and fix zypper repo addition