Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Setting Default Locale from JNLP

843802Feb 15 2005 — edited Feb 17 2005
Hi,

I want to set the default locale for the application that is started from JWS. The way of setting default locale i am adaptaing is to set system property 'user.language' and 'user.region'.

This works fine when i execute application from command line i.e. using java. When i println the Locale.getDefault it prints whatever is passed via above mentioned system properties.

If i execute the same application using JAVA Web Start and pass these properties using <property> tag for resources values does get passed to the executing application but the same is not set as DefaultLocale for the system. Rather the DefaultLocale is still picked up from what is set in windows regional settings.

How can i set default locale using these properties ? Is this a bug with JAVA Web Start? Please help this is urgent

Thanks in advacne. Awaiting your response.

Robin
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 17 2005
Added on Feb 15 2005
2 comments
1,304 views