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

The public knowledge pool and discussion forum of the OWS community. Do not post confidential information here!
nicogino
Posts: 2
Joined: 25 Mar 2024, 18:19

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

Post 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.

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

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

Post 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.

nicogino
Posts: 2
Joined: 25 Mar 2024, 18:19

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

Post by nicogino »

Thanks Janak !

Post Reply