问题描述
TZUpdater 2.1.0在tzdata2016g版本中失败.对于Java 8,它会失败,并显示源目录不包含文件:VERSION"错误,而对于Java 7,它会以"JRE更新到版本:tzdataunknown"注释完成.
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.
其原因似乎是IANA tzdata发行版的最新更改:取消Makefile的VERSION字段.报告了有关该问题的错误: https://bugs.openjdk.java.net/browse/JDK-8166928 .
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日期(2016年10月30日)越来越近,我们至少需要解决此问题的方法.可以吗?
DST date(30th October 2016) is getting closer and we at least need a workaround for this. Is it, somehow, possible?
推荐答案
解决方法:
- 更新 http://www.iana.org/time-的
Makefile
zone/repository/releases/tzdata2016g.tar.gz :VERSION
变量的原始值为unknown
,您需要将其更新为2016g
. - 重新生成
tzdata2016g.tar.gz.sha512
文件
- Update
Makefile
of http://www.iana.org/time-zones/repository/releases/tzdata2016g.tar.gz: Original value ofVERSION
variable isunknown
and you need to update it to2016g
. - Regenerate
tzdata2016g.tar.gz.sha512
file
可以从 tzupdater_2016g_workaround
Oracle宣布了相同的解决方法: http://www. oracle.com/technetwork/java/javase/tzupdater-readme-136440.html#issues .但是,您仍然需要自己创建有效的tzdata2016g.tar.gz
和tzdata2016g.tar.gz.sha512
文件.您可以下载我准备的文件.请参阅编辑1.
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.
这篇关于TZupdater在tzdata2016g版本中失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!