Java 17 runtime opens and exports arguments

Still need help?

The Atlassian Community is here for you.

Ask the community

Because of the added support for Java 17, you might get errors when installing Jira 9.5. Here's how to prevent this.

If you're using Maven plugins like Maven Failsafe plugin, Maven Surefire plugin, or any other for testing purposes, you must add the JVM opens/exports arguments to the argLine property in the configuration block.

In the following example screenshot, we have the empty argLine property for JVM 8 and 11, and it'll be activated for JVM 17 via the jvm17 profile.

Example script

Copy the following script to run Jira 9.5:

--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.management/javax.management=ALL-UNNAMED --add-opens=java.desktop/sun.font=ALL-UNNAMED --add-opens=java.base/sun.reflect.generics.parser=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED --add-opens=java.base/java.time=ALL-UNNAMED --add-exports=java.base/sun.util.calendar=ALL-UNNAMED --add-exports=java.base/sun.security.action=ALL-UNNAMED --add-exports=java.xml/jdk.xml.internal=ALL-UNNAMED

When starting on JVM 17 from shell scripts, Jira will add all needed opens and exports itself.

Last modified on Dec 9, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.