This prevents build dependency on Python 2.7 (see #201859). Upstream recommends using openjdk8 or 11, but my tests show that using openjdk17 works well.