TZUpdater 2.1.0 is failing with tzdata2016g release. For Java 8 it fails with "Source directory does not contain file: VERSION" error, while it completes with "JRE updated to version : tzdataunknown" comment for Java 7.
The reason of this seems to be recent change of IANA tzdata distribution: Unsetting VERSION field of Makefile. There is a bug reported regarding the issue: https://bugs.openjdk.java.net/browse/JDK-8166928.
DST date(30th October 2016) is getting closer and we at least need a workaround for this. Is it, somehow, possible?
Workaround:
Makefile
of http://www.iana.org/time-zones/repository/releases/tzdata2016g.tar.gz: Original value of VERSION
variable is unknown
and you need to update it to 2016g
. tzdata2016g.tar.gz.sha512
fileEdit 1: Modified(working) files can be downloaded from tzupdater_2016g_workaround
Edit 2: Oracle announced the same workaround: http://www.oracle.com/technetwork/java/javase/tzupdater-readme-136440.html#issues. However you still need to create working tzdata2016g.tar.gz
and tzdata2016g.tar.gz.sha512
files by yourself. You instead can download the files I prepared. See Edit 1.
oneliner for the lazy ones:
curl https://github.com/anlcan/tzupdate/raw/master/tzupdate.zip -o tzup.zip && unzip tzup.zip && cd tzup && sh run.sh
tzupdate.zip file contains the tzdata2016g.tar.gz
, the correct hash tzdata2016g.tar.gz.sha512
and the script with the java tzupdate command. You can find the zip file here: https://github.com/anlcan/tzupdate .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With