JVM Arguments not working for JDK11

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

JVM Arguments not working for JDK11

Ankit Tomar
Hi ,

Please suggest how to pass these arguments to the plugin.

On Tue, Jun 2, 2020 at 11:13 PM Ankit Tomar <[hidden email]>
wrote:

> Hi Team,
>
> I am trying to pass jvmArguments in plugin but they are not working.
> We are using embedded cassandra in our application and it tries to access
> JDK's internal classes and after JDK 11 Java has put strict checks on
> internal class access using reflection . There is one work-around for it
> that is to pass packages to access using *--add-exports *option .
>
> I need to pass below option to plugin:
>
> -Djdk.attach.allowAttachSelf=true --add-exports
> java.base/jdk.internal.misc=ALL-UNNAMED --add-exports
> java.base/jdk.internal.ref=ALL-UNNAMED --add-exports java.base/sun.nio.ch=ALL-UNNAMED
> --add-exports
> java.management.rmi/com.sun.jmx.remote.internal.rmi=ALL-UNNAMED
> --add-exports java.rmi/sun.rmi.registry=ALL-UNNAMED --add-exports
> java.rmi/sun.rmi.server=ALL-UNNAMED --add-exports
> java.sql/java.sql=ALL-UNNAMED  --add-opens
> java.base/java.lang.module=ALL-UNNAMED --add-opens
> java.base/jdk.internal.loader=ALL-UNNAMED --add-opens
> java.base/jdk.internal.ref=ALL-UNNAMED --add-opens
> java.base/jdk.internal.reflect=ALL-UNNAMED --add-opens
> java.base/jdk.internal.math=ALL-UNNAMED --add-opens
> java.base/jdk.internal.module=ALL-UNNAMED --add-opens
> java.base/jdk.internal.util.jar=ALL-UNNAMED --add-opens
> jdk.management/com.sun.management.internal=ALL-UNNAMED
>
> Please suggest how to pass these arguments.
>
>
> Thanks & Regards,
> Ankit
>
>