views:

2882

answers:

3

I have installed Apache Tomcat 6 as a Service in a Windows XP computer (French)

My problem is that Tomcat itself and all webapps (Sonar and Hudson) now show french messages. I want English messages of course so I went to the "Regional Settings" window in Control panel and changed everything to English (US)

Tomcat however is still in French. Nothing changed at all.

I suspect that because it runs as a service it does not pick the settings from control panel.

So is there any way to trick the Tomcat JVM so that it uses English instead of French? I have sys admin access to the machine (XP PRO French)

Thank you

+2  A: 

You need to set user.language and user.region appropriately,

e.g.

java -Duser.language=en -Duser.region=CA

in your Tomcat startup (probably catalina.bat). Check this link for more info, and for references to the sets of valid ISO codes for the above.

Brian Agnew
There is no catalina.bat since Apache is a service. I put them in the configuration GUI dialog. Also in order to work they have to be the first options in the java command line. Strange...
kazanaki
A: 

Specify language option in service parameters.

$Tomcat/bin/javaw.exe move to Java tab and specify -Duser.language=en -Duser.region=CA at Java Options:

Rudy
A: 

catalina.bat is wrong place of course ir u are using tomcat as service.

If u install tomcat as service with tomcat installer from tomcats website, use approach pointed out by Rudy.

If u install tomcat as service by hand with service.bat, u must modify it before using. Locate --JvmOptions directive at end of the file and add smth like this:

-Duser.language=lv;-Duser.region=LV;....

Note that options are delimited with ; not spaces.

bigoldbrute