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
|
|