Grumfish wrote:
Raymond DeCampo wrote:
Locale.setDefault(Locale.US);
Ray
This doesn't seem to do what I'm looking for. I checked the docs and
tried a quick program using it and it only seems to change the locale of
that single instance of the application. I would like a way so that
every Java application and the compiler defaults to using English rather
than the system's default locale. Something like a config file or
environment variable that is checked by every instance of Java before
checking the system's setting.
So you want Java and it's tools to run as if the regional settings are
for US even though the OS settings are for Japanese? I don't think that
most programs would bother with adding such functionality; after all, if
the user has his or her regional settings set to something, that's
probably what they want.
I suppose you have some reason for not being able to change the regional
settings in Windows? This would be the most obvious solution.
In that case, I would explore OS-level solutions instead of expecting
the applications to provide this. In particular, I would set up a
second user on the machine with the default regional settings set to US.
Then I would use runas to launch all the programs I would like to
display as US locale. (Look at the runas documents carefully however,
it must be invoked in a particular way to pick up all of the target
user's configuration.)
Ray
--
XML is the programmer's duct tape.