Users without write permission have seen the AccessDeniedException while executing the -V (--version) command of the TZUpdater tool.
The exception on windows looks like this:
java -jar tzupdater.jar -V
tzupdater version 2.2.0-b01
JRE tzdata version: tzdata2018c
Failed: java.nio.file.AccessDeniedException: C:\Java\testTZUpdater\jdk1.8.0_171\jre\lib\tzdb.dat.dynamic
java.nio.file.AccessDeniedException: C:\Java\testTZUpdater\jdk1.8.0_171\jre\lib\tzdb.dat.dynamic
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230)
at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)
at java.nio.file.Files.newOutputStream(Files.java:216)
at tools.tzdb.TzdbZoneRulesCompiler.outputFile(TzdbZoneRulesCompiler.java:228)
at tools.tzdb.TzdbZoneRulesCompiler.compile(TzdbZoneRulesCompiler.java:201)
at tools.tzdb.TzdbZoneRulesCompiler.<init>(TzdbZoneRulesCompiler.java:310)
at com.sun.tools.tzupdater.ExternalModule.compileToJSRBinary(ExternalModule.java:176)
at com.sun.tools.tzupdater.TimezoneUpdater.run(TimezoneUpdater.java:240)
at com.sun.tools.tzupdater.TimezoneUpdater.main(TimezoneUpdater.java:636)
The exception on windows looks like this:
java -jar tzupdater.jar -V
tzupdater version 2.2.0-b01
JRE tzdata version: tzdata2018c
Failed: java.nio.file.AccessDeniedException: C:\Java\testTZUpdater\jdk1.8.0_171\jre\lib\tzdb.dat.dynamic
java.nio.file.AccessDeniedException: C:\Java\testTZUpdater\jdk1.8.0_171\jre\lib\tzdb.dat.dynamic
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230)
at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)
at java.nio.file.Files.newOutputStream(Files.java:216)
at tools.tzdb.TzdbZoneRulesCompiler.outputFile(TzdbZoneRulesCompiler.java:228)
at tools.tzdb.TzdbZoneRulesCompiler.compile(TzdbZoneRulesCompiler.java:201)
at tools.tzdb.TzdbZoneRulesCompiler.<init>(TzdbZoneRulesCompiler.java:310)
at com.sun.tools.tzupdater.ExternalModule.compileToJSRBinary(ExternalModule.java:176)
at com.sun.tools.tzupdater.TimezoneUpdater.run(TimezoneUpdater.java:240)
at com.sun.tools.tzupdater.TimezoneUpdater.main(TimezoneUpdater.java:636)