Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Forcing the use of english in JDK7 tools

Tags:

java

java-7

I just installed JDK7 on a german Windows machine and the first thing I noticed is that unlike JDK6 it takes after the OS and some messages (e.g., the help messages from the tools but not error messages from the compiler) are in german. How can I force it to use english everywhere? AFAIK the installer isn't language-specific and all the messages during installation were in english.

like image 558
olefevre Avatar asked Jun 02 '11 16:06

olefevre


2 Answers

You can set default java options with the environment variable JAVA_TOOL_OPTIONS.

So, to change the language, set it to -Duser.language=en

Source

like image 187
Wolfgang Avatar answered Oct 19 '22 11:10

Wolfgang


You mean javac? Try setting -J-Duser.language=en argument. See this post: Passing "-J-Duser.language" into javac through ant to ensure compilation errors are reported in the correct language

like image 3
Anthony Accioly Avatar answered Oct 19 '22 10:10

Anthony Accioly