I want to set the default Locale for my JVM to fr_CA. What are the possible options to do this?
Locale
fr_CA
I know of only one option Locale.setDefault()
Locale.setDefault()
You can set it on the command line via JVM parameters:
java -Duser.country=CA -Duser.language=fr ... com.x.Main
For further information look at Internationalization: Understanding Locale in the Java Platform - Using Locale
1.4m articles
1.4m replys
5 comments
57.0k users