In the meantime, I realised why did we even have to input these --add-opens parameters manually:
The start-jira.bat checks the Java version by calling the “java -version” command, but after that, it proceeds to start Jira with the Java that’s in the JAVA_HOME directory.
Which means, if for example, you have Java 8 on your PATH, but the JAVA_HOME is set to Java 17, the script will think that it’s running on Java 8, therefore it doesn’t add the necessary parameters, and then proceeds to run with the Java 17 in the JAVA_HOME directory…
This definitely needs to be fixed.