How do I set the default locale in the JVM?

前端 未结 7 1035
半阙折子戏
半阙折子戏 2020-11-22 11:42

I want to set the default Locale for my JVM to fr_CA. What are the possible options to do this?

I know of only one option Locale.setD

相关标签:
7条回答
  • 2020-11-22 12:10

    There is another away if you don't like to change System locale but the JVM. you can setup a System (or user) Environment variable JAVA_TOOL_OPTIONS and set its value to -Duser.language=en-US or any other language-REGION you want.

    0 讨论(0)
提交回复
热议问题