You can use the Installer for install jdk 17 on Windows.
Get installer for jdk 17.
sudo add-apt-repository ppa:linuxuprising/java
sudo apt -y update && sudo apt -y upgrade
sudo apt install oracle-java17-installer
Change the default java used.
sudo update-alternatives --config java