在Windows XP中为Tomcat服务设置默认语言环境 [英] Setting default locale for Tomcat Service in Windows XP

查看:224
本文介绍了在Windows XP中为Tomcat服务设置默认语言环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows XP计算机上安装了Apache Tomcat 6即服务(法语)

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

我的问题是Tomcat本身和所有的webapps(Sonar和Hudson)现在显示法国消息。
我当然想要英文信息所以我去了控制面板的区域设置窗口并将所有内容更改为英语(美国)

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然而<强>依旧用法语。没有任何改变。

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.

那么有没有办法欺骗Tomcat JVM以便它使用英语而不是法语?
我有sys管理员访问机器(XP PRO法语)

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)

谢谢

推荐答案

你需要适当地设置 user.language user.region

例如

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

(可能 catalina.bat )。查看此链接以获取更多信息,以及对有效ISO集的引用以上代码。

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.

这篇关于在Windows XP中为Tomcat服务设置默认语言环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆