Hello,
I tried to install BaseX on Windows 11 and it kept giving me the message that Java 11 was needed, even though I already was at 20 and now am at 21.
Then I noticed that java --version also reported a JAVA_TOOLS_OPTIONS environment variable:
java --version
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
openjdk 21.0.6 2025-01-21 LTS
OpenJDK Runtime Environment Temurin-21.0.6+7 (build 21.0.6+7-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.6+7 (build 21.0.6+7-LTS, mixed mode, sharing)
After removing that variable it no longer appears in the output of the version command and the install runs fine. I suppose it messes up parsing the version output.
Peter