deployment.jvm.arguments.whitelist

The public knowledge pool and discussion forum of the OWS community. Do not post confidential information here!
wolf
Posts: 1
Joined: 27 Feb 2024, 03:49

deployment.jvm.arguments.whitelist

Post by wolf »

We are upgrading a legacy system to JDK17 from JDK 8. We have few errors with a third-party library. We have to add --add-exports java.desktop/com.sun.java.swing.plaf.motif=ALL-UNNAMED to JVM args.
We have added deployment.jvm.arguments.whitelist=--add-exports java.desktop/com.sun.java.swing.plaf.motif=ALL-UNNAMED to deployment.properties.
But we still see the following warning in the console
Ignoring java-vm-args due to illegal Property java.desktop/com.sun.java.swing.plaf.motif=ALL-UNNAMED
Does anyone use deployment.jvm.arguments.whitelist successfully?
Thanks.

Janak Mulani
Posts: 743
Joined: 24 Mar 2020, 13:37

Re: deployment.jvm.arguments.whitelist

Post by Janak Mulani »

In the jnlp file you should specify:

Code: Select all

<java version="17"	java-vm-args="   --add-exports=java.desktop/com.sun.java.swing.plaf.motif=ALL-UNNAMED .. "
There should be '=' after --add-exports. There is no need of a whitelist entry for this arg.

Post Reply