[Java] Change language and locale to English in JVM options

I want to set it to English when the output language is garbled when the output language is Japanese on an embedded console such as IntelliJ. In that case, I should have set the following options in the JVM.

Set to English


-Duser.language=en -Duser.country=US

If you want to set it to Japanese, do as follows.

Set to Japanese


-Duser.language=ja -Duser.country=JP

Recommended Posts

[Java] Change language and locale to English in JVM options
Multilingual Locale in Java How to use Locale
Change List <Optional <T >> to Optional <List <T >> in Java
Java to C and C to Java in Android Studio
Change date and time to Japanese notation in Rails
Java classes and instances to understand in the figure
How to convert A to a and a to A using AND and OR in Java
Gzip-compress byte array in Java and output to file
Change java encoding in windows
What happened in "Java 8 to Java 11" and how to build an environment
How to call and use API in Java (Spring Boot)
Reasons to use Servlet and JSP separately in Java development
How to develop and register a Sota app in Java
Differences in how to handle strings between Java and Perl
How to change Java version and execute in an environment where Java cannot be installed freely
AtCoder ARC 081 C hash to solve in Ruby, Perl and Java
How to install the language used in Ubuntu and how to build the environment
[Android] Convert Map to JSON using GSON in Kotlin and Java
Sample to read and write LibreOffice Calc fods file in Java 2021
How to encrypt and decrypt with RSA public key in Java
Pass the i18n locale to JavaScript
Multithreaded to fit in [Java] template
Encoding and Decoding example in Java
How to learn JAVA in 7 days
thread safe process in java language
Log output to file in Java
StringBuffer and StringBuilder Class in Java
Understanding equals and hashCode in Java
How to use classes in Java?
How to name variables in Java
Try to implement Yubaba in Java
Hello world in Java and Gradle
How to concatenate strings in java
[Ruby / Refactoring] From Ruby iterative processing like Java and C language to Ruby-like iterative processing
How to test a private method in Java and partially mock that method
Sample code to serialize and deserialize Java Enum enums and JSON in Jackson
The story of forgetting to close a file in Java and failing
Sorting AtCoder ABC 111 C hashes to solve in Ruby, Perl and Java
How to change the maximum and maximum number of POST data in Spark
Java --Introduce CheckStyle plugin to IntelliJ IDEA and reflect it in formatter
(For super beginners) Getter / setter and property to think in D language
How to create your own annotation in Java and get the value
What is a class in Java language (3 /?)
How to implement date calculation in Java
How to implement Kalman filter in Java
Try to solve Project Euler in Java
Easy to make Slack Bot in Java
Java reference to understand in the figure
Try to implement n-ary addition in Java
How to do base conversion in Java
Java implementation to create and solve mazes
[Java] for Each and sorted in Lambda
[Java] How to output and write files!
What is a class in Java language (1 /?)
What is a class in Java language (2 /?)
Convert SVG files to PNG files in Java
How to implement coding conventions in Java
How to embed Janus Graph in Java
How to get the date in java
[Introduction to Java] Variable declarations and types
Arrylist and linked list difference in java