For Tumbleweed run the following as root:
zypper addrepo https://download.opensuse.org/repositories/home:plater/Tumbleweed/home:plater.repo
zypper refresh
zypper install java-17-openjdk
For Factory run the following as root:
zypper addrepo https://download.opensuse.org/repositories/home:plater/Factory/home:plater.repo
zypper refresh
zypper install java-17-openjdk
For 15.6 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/home:plater/15.6/home:plater.repo
zypper refresh
zypper install java-17-openjdk