olefevre
olefevre

Reputation: 4117

Forcing the use of english in JDK7 tools

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.

Upvotes: 10

Views: 4063

Answers (2)

Wolfgang
Wolfgang

Reputation: 2407

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

Upvotes: 6

Anthony Accioly
Anthony Accioly

Reputation: 22461

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

Upvotes: 3

Related Questions