capsule-maven-plugin icon indicating copy to clipboard operation
capsule-maven-plugin copied to clipboard

Warning with JDK11

Open vertex-github opened this issue 6 years ago • 1 comments

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by Capsule (file:/Users/vertex/WorkingCopies/jAPlus/AMon/target/AMon-1.0-SNAPSHOT-fat.jar) to field com.sun.jmx.mbeanserver.JmxMBeanServer.mbsInterceptor
WARNING: Please consider reporting this to the maintainers of Capsule
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

vertex-github avatar Oct 22 '18 23:10 vertex-github

Until someone fixes the capsule code, here is a workaround which will suppress the warnings:

java --add-opens java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED -jar <your-app-capsule.jar>

tuxji avatar May 07 '21 19:05 tuxji