Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messageWhy 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
Post Follow-up to this messageOn 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.
Post Follow-up to this messageOn 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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.