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.
deployment.jvm.arguments.whitelist
-
- Posts: 872
- Joined: 24 Mar 2020, 13:37
Re: deployment.jvm.arguments.whitelist
In the jnlp file you should specify:
There should be '=' after --add-exports. There is no need of a whitelist entry for this arg.
Code: Select all
<java version="17" java-vm-args=" --add-exports=java.desktop/com.sun.java.swing.plaf.motif=ALL-UNNAMED .. "