Java. lang. IllegalArgumentException: MALFORMED, malformed
Error details:
SLF4J: Failed to load class "org. slf4j. impl. StaticLoggerBinder ".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" java. lang. IllegalArgumentException: MALFORMED
At java.util.zip. ZipCoder. toString (ZipCoder. java: 58)
At java.util.zip. ZipFile. getZipEntry (ZIP file. java: 529)
At java.util.zip. ZipFile. access $900 (ZipFile. java: 56)
At java.util.zip. ZipFile $1. nextElement (ZIP file. java: 511)
At java.util.zip. ZipFile $1. nextElement (ZIP file. java: 481)
At org.zeroturnaround.zip. ZipUtil. iterate (ZipUtil. java: 366)
At org.zeroturnaround.zip. ZipUtil. unpack (maid. java: 772)
At org.zeroturnaround.zip. ZipUtil. unpack (maid. java: 755)
At com. webthk. map. utils. ImageCutUtil. main (ImageCutUtil. java: 29)
Solution:
Replace the original decompression plug-in with the decompression method based on org. apache. ant.
In addition, extract rar can be solved with java-unrar-0.3.jar (refer to the http://blog.csdn.net/zheng2008hua/article/details/6998345)
(Reference http://www.blogjava.net/icewee/archive/2012/05/26/379267.html)
Cause:
There are two possibilities: Change "\" to "\" for java Path Problems.
This is because there is a problem with format conversion in java.util.zip, and there is a character encoding problem in the jdk zip. In windows, the default encoding for compression is GBK. (You can modify the jdk to solve this problem. The technology is too difficult and you have not tested it)