Results 1 to 8 of 8
- 01-14-2011, 10:30 AM #1
Member
- Join Date
- Jan 2011
- Posts
- 3
- Rep Power
- 0
- 01-14-2011, 10:56 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
It's locale based, so you'll want a variant for your locale presumably.
I've not had to faff with that side of things, though.
- 01-17-2011, 10:17 AM #3
Member
- Join Date
- Jan 2011
- Posts
- 3
- Rep Power
- 0
I know that can change it in code width:
Calendar a = Calendar.getInstance();
a.setMinimalDaysInFirstWeek(1); // setMinimalDaysInFirstWeek is a non-static funtion
but, Is it possible to change it for all the applications on my server width the jvm optioms?
- 01-17-2011, 10:41 AM #4
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
If there is an option (a documented one anyway) for that it will be, at least referenced, in the API docs, probably in the description for that method you listed. Otherwise, there might be a -X or -XX option that can do this (those are undocumented and were all originally meant only for testing purposes but are, by default, included in the released JVM, kind of like cheat codes in games). Note that these options are not likely to work with IBM's JVM, and possibly not with OpenJDK, and probably not with any other third-party JVM. Google "Java -X min day first week" if you can't find anything in the API docs. Or, write to Oracle support asking about it (and wait a few years for an answer unless you send a check for a few thousand bucks along with it).
- 01-17-2011, 11:06 AM #5
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Cross-posted just now.
- 01-17-2011, 11:30 AM #6
Member
- Join Date
- Jan 2011
- Posts
- 3
- Rep Power
- 0
SOLVED:
In my default Locate:
[espaņol (Espaņa)][es_ES]
[minimalDaysInFirstWeek][4]
[firstDayOfWeek][2]
If I change the Locale width:
[espaņol (Espaņa)][es]
[minimalDaysInFirstWeek][1]
[firstDayOfWeek][2]
The jvm options:
-Duser.language=es -Duser.country=
- 01-17-2011, 11:34 AM #7
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
So Google helped, I see (or you begged for someone to Google it for you on even more sites). The -D options are not necessary if that is already your "language". Also, don't forget someway to change this on every system you deploy to, and, if the changes where made in the JDK/JRE subdirectories, with every Java upgrade.
- 01-17-2011, 11:47 AM #8
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Similar Threads
-
Is it posible (Sound)
By Dormage in forum Advanced JavaReplies: 0Last Post: 11-26-2010, 07:52 PM -
Day of the Week Calculator
By scheng12 in forum New To JavaReplies: 0Last Post: 09-08-2009, 03:59 PM -
Date of first day, given the week in the year and the year...
By Lee.J.Baxter in forum Advanced JavaReplies: 1Last Post: 08-26-2009, 08:48 AM -
Minimal single threaded web server?
By johann_p in forum New To JavaReplies: 2Last Post: 04-24-2008, 04:37 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks