Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

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 :    nmw@ion.le.ac.uk
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555


Report this thread to moderator Post Follow-up to this message
Old Post
Nigel Wade
07-29-04 02:09 AM


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 :    nmw@ion.le.ac.uk
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555


Report this thread to moderator Post Follow-up to this message
Old Post
Nigel Wade
07-29-04 02:09 AM


Re: Applet user.region and user.timezone
On Tue, 27 Jul 2004 15:37:50 +0100, Nigel Wade <nmw@ion.le.ac.uk>
wrote or quoted :

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

Report this thread to moderator Post Follow-up to this message
Old Post
Roedy Green
07-29-04 02:09 AM


Re: Applet user.region and user.timezone
On Tue, 27 Jul 2004 14:43:54 GMT, Roedy Green wrote:
> On Tue, 27 Jul 2004 15:37:50 +0100, Nigel Wade <nmw@ion.le.ac.uk>
.. 
>
> 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 XXXXX 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

Report this thread to moderator Post Follow-up to this message
Old Post
Andrew Thompson
07-29-04 02:09 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:26 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.