Page 1 of 1

deployment.jvm.arguments.whitelist

Posted: 11 Mar 2024, 11:02
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.

Re: deployment.jvm.arguments.whitelist

Posted: 11 Mar 2024, 13:48
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.