Change the default locale is to call Locale.setDefault():
import java.util.Locale; public class Main { public static void main(String[] argv) throws Exception { // Get default locale Locale locale = Locale.getDefault(); } }