How to Set Eclipse Console Locale/Language

How to set eclipse console locale/language

Go to Window > Preferences > Java > Installed JREs > select preferred JRE > Edit and then add the following to Default VM arguments:

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

Sample Image

How can I force Eclipse to show English on console?

You can force your eclipse to be in english language completely:

  • Go to the directory where you "installed" eclipse
  • Open the file "eclipse.ini" (preferrably with some editor that shows the linebreaks)
  • Insert the line "-Duser.language=en_US" at the end of the file

and voila your eclipse should be in english language and all
Locales will be in english!


If you don't want to change the language of your eclipse or this doesn't work for some reason you can always apply the Locale you're working in manually:

Date dNow = new Date();
SimpleDateFormat ft = new SimpleDateFormat ("E M y 'at' hh:mm:ss", Locale.ENGLISH);
System.out.println(ft.format(dNow));

How to set the language of svn plugin's in eclipse

  • Which of the two plugins are you using? There's Eclipse's Subversive plugin and CollabNet's Subclipse.
  • How did you install these plugins? Did you use the standard URL and had Eclipse automatically install the right plugins, or did you manually load them and specify a zip file to load?

All plugins should take your computer's default language setting or the language you specified via the -nl parameter in the eclipse.ini file.

You might want to try uninstalling and reinstalling the plugins again, but do it through the URL.

How do I set the default locale in the JVM?

From the Oracle Reference:

The default locale of your application is determined in three ways.
First, unless you have explicitly changed the default, the
Locale.getDefault() method returns the locale that was initially determined
by the Java Virtual Machine (JVM) when it first loaded. That is, the
JVM determines the default locale from the host environment. The host
environment's locale is determined by the host operating system and
the user preferences established on that system.

Second, on some Java runtime implementations, the application user can
override the host's default locale by providing this information on
the command line by setting the user.language, user.country, and
user.variant system properties.

Third, your application can call the Locale.setDefault(Locale)
method. The setDefault(Locale aLocale) method lets your application
set a systemwide (actually VM-wide) resource. After you set the default locale with this
method, subsequent calls to Locale.getDefault() will return the newly
set locale.



Related Topics



Leave a reply



Submit