Java – Setting java locale settings


When I use the default java locale on my linux machine it comes out with the US locale settings, where do I change this so that it comes out with the correct locale?

Best Solution

With the user.language, and user.variant properties.


java -Duser.language=th -Duser.variant=TH SomeClass