First find a JDK you want to use in Bazel, I will use Azul Zulu JDK 21 EA.
From the JDK vendor you choose you will need to find the download url and SHA256. In my case I find the download url by right clicking .zip
and selecting Copy link address
, and for the SHA256 I click the Checksum (SHA256)
and copy the SHA256.
Now in your WORKFILE
add the following