With the user.language
, user.country
and user.variant
properties.
Example:
java -Duser.language=th -Duser.country=TH -Duser.variant=TH SomeClass
More Related Contents:
- Currency.getSymbol() returning “US$”
- SimpleDateFormat and locale based format string
- How to convert a String to another locale?
- Displaying Currency in Indian Numbering Format
- Using Locales with Java’s toLowerCase() and toUpperCase()
- How can I convert an Integer to localized month name in Java?
- JSF 2.0 set locale throughout session from browser and programmatically [duplicate]
- Java 7 default locale
- how to detect operating system language (locale) from java code
- Decimal separator in NumberFormat
- Sort List of Strings with Localization
- en_US or en-US, which one should you use? [duplicate]
- How to change Android O / Oreo / api 26 app language
- Java Date Format for Locale
- Couldn’t translate Date to spanish with Locale(“es_ES”)
- Java – I can’t print on the same line (I’m not using println)
- Remote debugging a Java application
- JFormattedTextField is not properly cleared
- decompiling DEX into Java sourcecode
- How to convert hex string to Java string?
- ‘Fill’ Unicode characters in labels
- Browse for image file and display it using Java Swing
- Two dimensional array list
- Are Thread.stop and friends ever safe in Java?
- How to create a secure random AES key in Java?
- Prevent JFreeChart DialPlot wrapping around with large values?
- Convert Uri to String and String to Uri
- Handling unconventional source directory for a web project in maven
- javax.persistence.TransactionRequiredException in small facelet application
- How to use the same C++ code for Android and iOS?