由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - how to set java run time locale/encoding?
相关主题
structure in Java??java编译的文件能不能作成可执行文件?
[转载] linux下的java sound问题入门Java CLASSPATH问题:
Swing help请推荐JAVA GUI开发工具用于UNIX。
Stupid IBM JVM: operator precedence如何用java在DB2里创建一个新的database
How is the Jboss AS performance?Java on AIX
[转载] 请问如何改变Oracle 9i AS中JVM的default encodingJava program running on PDA
[转载] 现在还有什么OS不是THREAD级调度的吗?Java都在什么时候进行Garbage collection?
请问在Java中有没有停止一切的命令关于J2EE vs. .NET
相关话题的讨论汇总
话题: java话题: english话题: chinese话题: locale话题: encoding
进入Java版参与讨论
1 (共1页)
c*****t
发帖数: 1879
1
Currently, i am setting WindowsXP to be Chinese w/ English menus.
However, when I run Java or Java applications (such as DB2 tools),
it all turns up in Chinese or some square boxes. Switching back
the system to English would make all the menus/buttons to be English,
and that's what I prefer.
So the question is, how to set the Java runtime locale/encoding
such that I can run applications in English with Windows XP setting
in Chinese?
Thanks.
d******p
发帖数: 24
2
java.util.Locale.setDefault(java.util.Locale.ENGLISH);

【在 c*****t 的大作中提到】
: Currently, i am setting WindowsXP to be Chinese w/ English menus.
: However, when I run Java or Java applications (such as DB2 tools),
: it all turns up in Chinese or some square boxes. Switching back
: the system to English would make all the menus/buttons to be English,
: and that's what I prefer.
: So the question is, how to set the Java runtime locale/encoding
: such that I can run applications in English with Windows XP setting
: in Chinese?
: Thanks.

c*****t
发帖数: 1879
3
Note, I am running someone else's application
(actually DB2's java command center). So, I can't really add
this piece of code.

【在 d******p 的大作中提到】
: java.util.Locale.setDefault(java.util.Locale.ENGLISH);
w********c
发帖数: 2632
4
if it calls java or javaw directly, maybe u can try -Duser.language=en
-Duser.region=us

【在 c*****t 的大作中提到】
: Note, I am running someone else's application
: (actually DB2's java command center). So, I can't really add
: this piece of code.

c*****t
发帖数: 1879
5
Sigh, thanks for the help, but it still doesn't work :(
DB2 seems to use stub executables that invokes JVM (either its own
or system's JVM). I tried to add the parameters somehow, but it
doesn't seem to work.

【在 w********c 的大作中提到】
: if it calls java or javaw directly, maybe u can try -Duser.language=en
: -Duser.region=us

1 (共1页)
进入Java版参与讨论
相关主题
关于J2EE vs. .NETHow is the Jboss AS performance?
help: where to download JAVA/swing? (转载)[转载] 请问如何改变Oracle 9i AS中JVM的default encoding
迷惑了很久,java 和 c++ 到底谁快?[转载] 现在还有什么OS不是THREAD级调度的吗?
java的接口runnable请问在Java中有没有停止一切的命令
structure in Java??java编译的文件能不能作成可执行文件?
[转载] linux下的java sound问题入门Java CLASSPATH问题:
Swing help请推荐JAVA GUI开发工具用于UNIX。
Stupid IBM JVM: operator precedence如何用java在DB2里创建一个新的database
相关话题的讨论汇总
话题: java话题: english话题: chinese话题: locale话题: encoding