Page 1 of 1

Java -Djava.locale.providers parameter not taken into account

Posted: 28 Jan 2025, 11:51
by nicogino
Hi,

My Java client is using Java 17. I need to activate following option:

Code: Select all

-Djava.locale.providers=COMPAT,CLDR
This option is inside my JNLP file:

Code: Select all

<j2se version="17+" initial-heap-size="" max-heap-size="1024m" java-vm-args="-Djava.locale.providers=COMPAT,CLDR" />
But when I start my app with Openwebstart, this option is not taken into account. I can see the following warnings in the OpenWebstart logs:

Code: Select all

[ITW-CORE][2025-01-28 11:41:45.837 CET][WARN ][net.sourceforge.jnlp.Parser] Warning - your JRE - 1.8.0_412 - does not match requested JRE - 17+
[ITW-CORE][2025-01-28 11:41:45.837 CET][WARN ][net.sourceforge.jnlp.Parser] Ignoring java-vm-args due to illegal Property -Djava.locale.providers=COMPAT,CLDR
Obviously, OpenWebstart is using its internal JRE 8 for bootstrapping, which doesn't accept this option. Any idea on how I could solve this issue ? Thanks a lot.

Re: Java -Djava.locale.providers parameter not taken into account

Posted: 29 Jan 2025, 16:05
by Janak Mulani
You will have to specify java.locale.providers=COMPAT,CLDR in JVM arguments whitelist as described at https://openwebstart.com/docs/OWSGuide. ... _arguments.

Re: Java -Djava.locale.providers parameter not taken into account

Posted: 29 Jan 2025, 17:19
by nicogino
Thanks Janak !