configure: try to autodetect Java 9+

4 jobs for master in 2 minutes and 43 seconds
Status Job ID Name Coverage
  Build
passed #247828
amd64 debian
build-debian

00:00:46

passed #247829
macos
build-macos

00:01:11

passed #247831
debian amd64 win32
build-win32

00:01:53

passed #247830
win64 amd64 debian
build-win64

00:02:04