FindJava.cmake: handle new openjdk versioning
The fix for #17613 (closed) (merge !1637 (merged)) does not take into account JEP-223 where the java versioning changed from the "1.VV" format to "VV".
The right way to compare versions should be to replace the current Java_VERSION VERSION_LESS "1.10"
with Java_VERSION VERSION_LESS "10"
.
Edited by Tiago Daitx