DST is not picked up by Java 5 on Solaris (1.4.2 and 5 on Windows are fine)

Solaris 9:
Java 5 ignores daylight savings time and displays time incorrectly. Java 1.4.2 installed on the same Solaris machine displays time zone and time correctly (taking into account DST). Does anybody know what should be tweaked so JRE 1.5 gets DST settings from OS?
Thank you,
Dima.
import java.util.Date;
import java.util.TimeZone;
public class testtime {
  public static void main (String argv[] ) {
    System.out.println ("Time: " + new Date()  + " Time zone: " + TimeZone.getDefault()) ;
}bash-2.05$ echo $TZ
bash-2.05$
bash-2.05$ date
Thu Sep 15 16:36:37 GMT 2005
bash-2.05$ /disk2/ic/iccommon/jre/bin/java -version
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode)
bash-2.05$ /disk2/ic/iccommon/jre/bin/java -cp . testtime
Time: Thu Sep 15 15:37:47 GMT-05:00 2005 Time zone: sun.util.calendar.ZoneInfo[id="GMT-05:00",offset=-18000000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null]
Java 1.4.2 recognizes daylight savings time correctly:
bash-2.05$
bash-2.05$ /disk1/3PTYSW/java1_4_2_03/bin/java -version
java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
bash-2.05$ /disk1/3PTYSW/java1_4_2_03/bin/java -cp . testtime
Time: Thu Sep 15 16:39:20 EDT 2005 Time zone: sun.util.calendar.ZoneInfo[id="US/Eastern",offset=-18000000,[b]dstSavings=3600000,useDaylight=true,transitions=235,lastRule=java.util.SimpleTimeZone[id=US/Eastern,offset=-18000000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=3,startDay=1,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=2,endMonth=9,endDay=-1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]]
bash-2.05$

Well, they wouldn't rewrite their 1.4 documents at all actually.
This is just Sun improving their product's documentation. Defining a serialVersionUID has always been a good idea, as all versions of the Serialization Specification show.

Similar Messages

  • I am getting a java error when Mozilla is first started and pop-up windows are opened. It only happens in Mozilla not IE

    see question above. Running 4.0.1 but get error Typeerror: Components.classes{cid} in undefined

    michaeleen, you can fix this with a clean install of Firefox:
    1. Download the Firefox installer from [http://www.mozilla.com/products/download.html?product=firefox-3.6.7&os=win&lang=en-US this direct link] and save it to your desktop or other location.
    2. Make sure that Firefox is closed completely
    3. Delete the Firefox installation directory (On Windows, this is typically the C:\Program Files\Mozilla Firefox folder that contains "firefox.exe" and other Firefox program files and folders).
    4. Reinstall Firefox by running the installer you downloaded previously.
    Your personal settings, including bookmarks and history, will not be lost.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • HT4623 my phone will not pick up network, i have tried restoring on i-tunes and it comes up with error message -1

    my phone will not pick up network, i have tried restoring on i-tunes and it comes up with error message -1

    Here's what that error means:
    Error 1 or -1
    This may indicate a hardware issue with your device. Follow Troubleshooting security software issues, and restore your device on a different known-good computer. If the errors persist on another computer, the device may need service.
    This comes from this article:
    http://support.apple.com/kb/TS3694#error1

  • Hi can anyone help me, my daughters macbook will not pick up the wireless signal in her bedroom when me and my wifes iphone picks it up easy. any ideas to help please.A

    Hi can anyone help me, my daughters macbook will not pick up the wireless signal in her bedroom when me and my wifes iphone picks it up easy. any ideas to help please.Andy

    P.S i;ve heard a comment about the G5 case not being
    great for wireless so the cards come with a plastic
    antena that connects to the back of the machine - i
    never recieved one of these - could that be the
    problem?
    Newer G5 PowerMacs don't require the external t-shaped aerial, earlier models do and that is probably the cause of the problem.
    iFelix

  • My Ipod touch Is stuck in restoe mode. I have reinstalled Itunes 10.4 .1 10. windows says drivers are not installed. I have followed all trouble shooting advice, fixes and updates for windows 7

    I have reinstalled Itunes 10.4 .1 10. windows says drivers are not installed. I have followed all trouble shooting advice, fixes and updates for windows 7

    I have reinstalled Itunes 10.4 .1 10. windows says drivers are not installed. I have followed all trouble shooting advice, fixes and updates for windows 7

  • Old school, has anyone here been able to install and run Logic Pro 9.1   on a dual 1.8 G5 PPC? I know LP9 is not officialy supported on non Intel CPUs, But  9.0.0 and 9. 02 are ok on the G5 PPC as it is universal Binary, while I hear 9.1 wont work

    has anyone here been able to install and run Logic Pro 9.1   on a dual 1.8 G5 PPC? I know LP9 is not officialy supported on non Intel CPUs, But  9.0.0 and
    9. 02 are ok on the G5 PPC as it is universal Binary, while I hear 9.1 wont work.

    ok thanks, that's what I tought,looks like apple machines are only good for two - three years, the software developers are ahead of the hardware to a certain point, love macs but this is forcing us to buy new macs just to keep  up with development. There was a time it was the opposite.
    By the time we get up on new stuff it's time to change again. Gotta be rich to deal with macs ...LOL

  • Certain events in iPhoto will not sync to my iPad. No Error messages comes up and the photos themselves are ok. its like my ipad doesn't see them. Cause i can get some photos on there just not all.

    certain events in iPhoto will not sync to my iPad. No Error messages comes up and the photos themselves are ok. its like my ipad doesn't see them. Cause i can get some photos on there just not all. Photos are from the same camera and should all be in the same format.

    What is the file name of the video(s) you want to sync?
    Another way. You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
    Secrets of the iPad Camera Connection Kit
    http://howto.cnet.com/8301-11310_39-57401068-285/secrets-of-the-ipad-camera-conn ection-kit/
     Cheers, Tom

  • HT1338 all of sudden comcast and facebook pages do not load when i try to access them on my mac.  all other websites are fine. any one out there having the same issue?

    all of sudden comcast and facebook pages do not load when i try to access them on my mac.  all other websites are fine. any one out there having the same issue?

    That's just not right - I mean, it really wrong to have to use a Windows machine to access your Facebook account. Can you pull up Comcast on IE as well?
    Something's going on and I'm surprised that deleting your cache and cookies for those sites didn't work.
    Let me fool around a bit - what's your primary browser?
    Curious,
    Clinton

  • JConsole not picking up local Java processes

    Hi,
    Using JDK 1.5.0_06 JConsole is not picking up my local Java processes. I have set the -Dcom.sun.management.jmxremote as an arg to the JVM startup. My Windows username does not have an underscore in it and my default temporary directory is on NTFS. When I run the jps command I see my java processes but I get process information unavailable for each one except the jps command.
    Anybody have any ideas as to what else I should look at.

    Found the answer I was looking for - What a pain - http://forum.java.sun.com/thread.jspa?threadID=730397&messageID=4308804

  • Updated and now tool windows are not showing up.

    I just updated my Muse and the pop open tool windows are not showing up. For example when I click on some text and then click on the list of typfaces the typeface window shutters and won't show up. This window keeps blinking from gray to black. I have uninstalled and re-installed the program. Also the tool window on the left side also cuts off the all of the tools. Also on my planning mode the A-master isn't showing up and I can't scroll to get to the A-master.

    The A-master not showing up at the bottom of the screen sounds like you must be running on a Windows machine with your screen resolution set to 125%. Try setting your resolution back to 100% (or if need be increase to 150%) and see if that helps.
    We don't support UI scaling in this release, but at the 125% setting Windows tries to scale us anyway and the result is not usable. We're working on a fix to avoid being scaled in this case.
    If it still behaves badly at 100%, would it be possible to post a screenshot?

  • For about the past week, Facebook has been taking forever to load (or just not) on my mac (OSX 10.5.8; Safari 5.0.6).  Other sites are fine.  I routinely empty the cache, clear history, cookies, etc. each time I shut down.  Suggestions?

    For about the past week, Facebook has been taking forever to load (or just doesn't) on my mac (OSX 10.5.8; Safari 5.0.6).  Other sites are fine.  I routinely empty the cache, clear history, cookies, etc. each time I shut down.  Suggestions?

    I don't use Facebook, but I can say that clearing the cache every time you shut down is excessive - unless you're sure the cache is corrupt you should leave it alone.  It exists to speed up your browsing experience by loading frequently requested items from your drive rather than downloading them fresh from the internet each time.  So, I would say stop clearing your cache and see what happens.
    As for clearing cookies: I'm not sure what method you currently use, but I would recommend you download and install CCleaner.  It's free, and allows you to build up a list of cookies that you want to clear and those you want to keep, before deleting them.
    Both of these may help speed things up by reducing the amount of work Safari has to perform whilst browsing.  Regardless, I'd say that, unless there's a reason you've not mentioned for performing the "purging" that you do, making these two changes should see improvements in general web browsing if not specifically when loading Facebook.

  • Usual windows 7 opening and closing of windows are not working with my updated Firefox 16.0.1

    My Windows 7 automatically updated recently and so did Firefox. Now, with all other Windows applications including Internet Explorer, I can open a new window by right-clicking on the icon in the taskbar (showing there because the application is open), and when I right click, it gives me the option to close all windows. With Firefox, this also used to be the case, but since the update, when I right -click on the open Firefox in the taskbar, nothing happens. And when I tried to "pin" Firefox to the taskbar, even then, I cannot close all open windows just by right-clicking, and it is a longer procedure to open a new Firefox window. Suggestions would be greatly appreciated....

    Try to check for problems with the localstore.rdf file.
    *http://kb.mozillazine.org/Corrupt_localstore.rdf
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • I have a new computer and have downloaded some new CD's to my music Library.  When synching the new songs will not download even though there is abundant room on the Ipod and the new songs are checked.  Could this be a Windows 8 issue?

    I have purchased another computer with the Windows 8 OS.  When trying to synch the Ipod to capture some new music I have recently downloaded, the new songs will not show up on my IPod even though I have checked each one to synch.  Any ideas?

    I have a syncing issue involved with putting music on my iphone i am also using windows 8 so who knows?...

  • HT1386 I have iTunes (up to date) and an iPhone 4s. When I connect it using the USB cable it does not appear in the top right corner. Other devices do and also the cable is fine as it charges and the PC sees it as a device. I've looked online and have no

    I'm new to this and I think I typed a long heading!
    Anyway the issue is I have iTunes and just updated it to the latest. I also have various Apple devices however my iPhone won't sync with iTunes. When I connect it using the USB cable it does not appear in the top right corner as does other devices. The cable is fine as it charges and also my PC sees the device. However it does not appear in iTunes so I can't sync music to it.
    I've searched the web but all asume iTunes can see the device.
    Help!?

    Hi David,
    If you are having issues with your iPhone not being recognized by iTunes on your Windows machine, you may find the troubleshooting steps in the following article helpful:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/ts1538
    Regards,
    - Brenden

  • Why do pages like natwest and ELC not display properly? It is like their text is too large, yet other pages are fine?

    I have abrand new ASUS notebook with a 11 and a half inch screen. I have up to date Windows system, and am using the latest version of firefox. I have gone through all the tips in the help section of firefox including clearing cache and cookies, and also checking all settings for text, however none of this has corrected the problem. For example when i log into my online banking the text is that big it doesnt fit into the boxes set on natwest screen, so therefore i can view all of the text and it gets jumbled together in some places. With ELC a good example is the menu across the top of the page which gives all of the categories of products they sell for you to click on. As the writing is too large it does not display properly. Im not sure what else to do to crrect this. Can anyone help?

    Try 2 things, if they can help:
    1. on the same window, where you have 1 of above site opened. Do ctrl + F5.
    2. Do Ctrl + shift + P, it will open a new private window and browse any of the above site.

Maybe you are looking for

  • Can not view photos in media

    When i pull up my iweb and go to a page, open media click photo and try to drag there are no images in my photo there are just file icons from my i photo and apeture programs does anyone know how to view them as thumbnails so i can drag them again Th

  • Is this even possible? (Rotation question)

    Hi! I'm new to Java 3D... What I am trying to do is to rotate one transform group around another transform group. i.e. get a moon spinning the earth does anyone know how to do this? I am posting my code below.... I've searched the forums already and

  • Graphic files are embedded instead of linked

    I have a CS3 illustrator file done by a co-worker that has eight, color .jpg photos placed into it. When checking the file before sending to the printer, we noticed that the photos showed up in the links palate, but had no file names listed and each

  • Making text glow with a spinning logo in menu

    hi all maybe hal could help me, i am wanting to create some menu pages ,where i have a spinning logo and text that glows when selected,not sure how to do it,i nearly can understand about creating menu pages in photoshop using layersfor the glow ,but

  • Scheduling scenarios don't work after upgrading 10.1.3.5 to 11.1.1.6...

    Hello~ I upgraded ODI version 10.1.3.5 to 11.1.1.6 without any error. However although I restart agent, scheduling scenarios don't work on time. So I regenerated one of scenario using ODI studio menu and then this scenario worked successfully on sche