If you are distributing software based on java a 40mb jre in place of a 400mb jdk is surely preferred.
You can build them yourself for each OS you target with jlink, or you can just grab the latest built and tested one from e.g. Bellsoft - but not Adoptium or Oracle.
Java has been "breaking changes" between releases to make python blush for a few years now, 17 finally looks like a worthy migration from 8.