Set the default locale to pre-defined locale
import java.util.Locale; public class Main { public static void main(String[] argv) throws Exception { Locale.setDefault(Locale.FRENCH); } }