Openhab not working with zulu11.0.20

Searching for “Invalid CEN header” brought me via Builds broken - July 19, 2023 · Issue #3174 · iBotPeaches/Apktool · GitHub to Consolidated JDK 11 Release Notes which mentions:

core-libs/java.util.jar
Improved ZIP64 Extra Field Validation (JDK-8302483 (not public))
java.util.zip.ZipFile has been updated to provide additional validation of ZIP64 extra fields when opening a ZIP file. This validation may be disabled by setting the system property jdk.util.zip.disableZip64ExtraFieldValidation to true.

So it may be necessary to set the mentioned system property with java 11.0.20.
I did this by setting

EXTRA_JAVA_OPTS="-Djdk.util.zip.disableZip64ExtraFieldValidation=true"

in /etc/default/openhab and after this openhab starts working with java 11.0.20 as expected.

2 Likes