How to set eclipse console locale/language

2019-01-07 10:02发布

问题:

When developing web application with Eclipse (Helios) the tomcat output is being sent to the console. Ok, but the messages are being translated to my OS language.

In fact, my Eclipse is in English, but the Tomcat output (logging) is being translated to Portuguese. Probably it's a Tomcat configuration issue, but I can't find where...

How do I change this behaviour? I want my entire Eclipse in English, including Tomcat.

回答1:

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



回答2:

Try adding -Duser.language=en in the bottom of your eclipse.ini which is found in your eclipse installation directory (keep a backup copy of the eclipse.ini before any changes).



回答3:

Have you tried setting the following -D parameters in the launch configuration?

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


标签: java eclipse