 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Nigel Wade Guest
|
Posted: Tue Jul 27, 2004 2:03 pm Post subject: Applet user.region and user.timezone |
|
|
Hi,
I am trying to get a Java applet working on Windows and Linux. The problem
is that it requires specific values to be set for user.reqion and
user.timezone.
On Windows I can set these in the Java Plug-In control panel. This is not
ideal but at least it gets the job done (it means all applets will get the
same fixed values for these properties), it would be nice to be able to
set them on a per-applet basis.
I've so far not found a way to do the same for Linux. Here, user.timezone
is set, but it's a blank string. user.region is not even in the
System properties. I thought that the JVM might get the timezone from the
environment variables TZ or TIMEZONE, but it doesn't.
Does anyone have any idea where Java gets the values for these
properties in Linux, and how I can override them for an applet?
--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : [email]nmw (AT) ion (DOT) le.ac.uk[/email]
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
|
|
| Back to top |
|
 |
Nigel Wade Guest
|
Posted: Tue Jul 27, 2004 2:37 pm Post subject: Re: Applet user.region and user.timezone |
|
|
Why is it, that 10 minutes after posting a question you find the answer
yourself, regardless of how long you spend looking for an answer prior to
that?
For anyone else who has difficulty in doing this, the JRE has a
ControlPanel in JRE_HOME/bin/ControlPanel. This does the same as the
Windows control panel.
I still don't know where Java gets it's default values for user.timezone
and user.region...
--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : [email]nmw (AT) ion (DOT) le.ac.uk[/email]
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
|
|
| Back to top |
|
 |
Roedy Green Guest
|
Posted: Tue Jul 27, 2004 2:43 pm Post subject: Re: Applet user.region and user.timezone |
|
|
On Tue, 27 Jul 2004 15:37:50 +0100, Nigel Wade <nmw (AT) ion (DOT) le.ac.uk>
wrote or quoted :
| Quote: | Why is it, that 10 minutes after posting a question you find the answer
yourself, regardless of how long you spend looking for an answer prior to
that?
|
Because in formulating the question clearly for others it clarifies
your own thinking?
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
|
|
| Back to top |
|
 |
Andrew Thompson Guest
|
Posted: Tue Jul 27, 2004 3:16 pm Post subject: Re: Applet user.region and user.timezone |
|
|
On Tue, 27 Jul 2004 14:43:54 GMT, Roedy Green wrote:
| Quote: | On Tue, 27 Jul 2004 15:37:50 +0100, Nigel Wade
...
Why is it, that 10 minutes after posting a question you find the answer
yourself, regardless of how long you spend looking for an answer prior to
that?
Because in formulating the question clearly for others it clarifies
your own thinking?
|
Naah.. I put it down to the 'Precognition Fairy',
who grants you the knowlege you require, 5 minutes
before you need it.
...Trouble is, the bitch is always 15 minutes late. ;-)
--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|