Menu

#182 --add-opens JVM arg issue

All
closed-wont-fix
nobody
None
5
2021-10-16
2021-08-27
Ryan Kurtz
No

When I use the --add-opens JVM arg:

wrapper.java.additional.1=--add-opens java.base/sun.security.x509=ALL-UNNAMED

execution never makes it to my specified "main class". My class needs to access some internal java api's, and the --add-opens JVM argument is the supported way to do so for legacy code.

I saw the issue in 12.12 up to 13.00, in both JDK 11 and JDK 16.

Discussion

  • jo ro

    jo ro - 2021-08-27

    try setting:

    wrapper.java.additional.1=--add-opens
    wrapper.java.additional.2=java.base/sun.security.x509=ALL-UNNAMED

     
  • Ryan Kurtz

    Ryan Kurtz - 2021-08-27

    Good call, that worked. Thanks!

     
  • rzo

    rzo - 2021-10-16
    • status: open --> closed-wont-fix
     

Log in to post a comment.