Sidebar

creating Zip and get error "Cannot find function setCreationTime in object". What is the cause?

0 votes
254 views
asked Jan 3, 2018 by brandon-w-8204 (33,270 points)
"Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot find function setCreationTime in object"

1 Answer

0 votes

The setCreationPath is part of the "java.util.zip.ZipEntry" java class and is included in java. The setCreationPath was added in Java 8 and above. The error indicates that you are on Java 7 or below. Here is the Java Docs on the Zipentry.

Java 8
https://docs.oracle.com/javase/8/docs/api/java/util/zip/ZipEntry.html

Java 7​​​​​​​
​​​​​​​https://docs.oracle.com/javase/7/docs/api/java/util/zip/ZipEntry.html

answered Jan 3, 2018 by brandon-w-8204 (33,270 points)
...