Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8203683

Sometimes TZUpdater Can't rename to "zi" folder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • None
    • tools
    • x86_64
    • windows_7

      Sometimes, on windows machines with anti-virus software running, I have seen the below error with the TZUpdater tool.
      [This happens only with JDK 6 and JDK7 where tzdata information is written to "zi" folder, unlike in JDK8 and above it is stored in a file named- tzdb.dat]

      Using https://www.iana.org/time-zones/repository/tzdata-latest.tar.gz as source for tzdata bundle.
      java.home: D:\Tools\TZupdater\jdk1.6.0_191\jre
      java.vendor: Sun Microsystems Inc.
      java.version: 1.6.0_191
      tzupdater version 2.2.0-b01
      JRE tzdata version: tzdata2018c
      Downloaded file to C:\cygwin64\tmp\tz.tmp_6\tzdata.tar.gz
      javazic: warning: found last rules for Eire inconsistent.
      tzupdater tool would update with tzdata version: tzdata2018e
      Extracting files... done.
      Renaming D:\Tools\TZupdater\jdk1.6.0_191\jre\lib\zi to D:\Tools\TZupdater\jdk1.6.0_191\jre\lib\zi.tzdata2018c
      Renaming D:\Tools\TZupdater\jdk1.6.0_191\jre\lib\zi.tzdata2018e to D:\Tools\TZupdater\jdk1.6.0_191\jre\lib\zi
      failed.
      Can't rename D:\Tools\TZupdater\jdk1.6.0_191\jre\lib\zi.tzdata2018e to D:\Tools\TZupdater\jdk1.6.0_191\jre\lib\zi.
      Restoring the saved time zone data... done.
      Exception in thread "main" com.sun.tools.tzupdater.TzRuntimeException: com.sun.tools.tzupdater.TzRuntimeException: done.
              at com.sun.tools.tzupdater.TimezoneUpdater.main(TimezoneUpdater.java:655)
      Caused by: com.sun.tools.tzupdater.TzRuntimeException: done.
              at com.sun.tools.tzupdater.TimezoneUpdater.update(TimezoneUpdater.java:318)
              at com.sun.tools.tzupdater.TimezoneUpdater.run(TimezoneUpdater.java:258)
              at com.sun.tools.tzupdater.TimezoneUpdater.main(TimezoneUpdater.java:636)

            rpatil Ramanand Patil (Inactive)
            rpatil Ramanand Patil (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: