Feel free to ignore my request above.
I managed to fix this issue by simply overriding the version via this command:
System.setProperty("java.version", "17");
You probably will want to fix that in future, but it's not urgent given that we have this simple solution.