Questions tagged [zip4j]

A java open-source library to handle Zip files.

A library to work with .zip files. It has the following features

  • Create, Add, Extract, Update, Remove files from a Zip file
  • Read/Write password protected Zip files
  • Supports AES 128/256 Encryption
  • Supports Standard Zip Encryption
  • Supports Zip64 format
  • Supports Store (No Compression) and Deflate compression method
  • Create or extract files from Split Zip files (Ex: z01, z02,...zip)
  • Supports Unicode file names
  • Progress Monitor

The project home page: http://www.lingala.net/zip4j/

126 questions
-1
votes
1 answer

java.io.FileNotFoundException - zip4j

I tried to create a simple Java Program which tries to unzip the zip file with zip4j. But everytime i get a java.io.FileNotFoundException. I dont know why because the path exists and the file is write able for java. Also the zip file isnt corrupt. I…
Excel1
  • 557
  • 1
  • 7
  • 20
-1
votes
2 answers

How to handle ZipException(Wrong password for file : Demo.zip) and display appropriate messages

Since I'm new to Java, I have created a method to unzip password protected zip files, I have used zip4j library for unzipping the zip file,the code works fine when the password is correct, but when the password is wrong how to handle the…
-1
votes
1 answer

Multi Thread zip4j

zip4j is a great library. But i run into a problem when using it in a class that uses a thread. The zip4j method is called from a class that implements thread and sometimes (not always) it leaves files uncompress and somtimes there are leftofer…
Mohammad Irfan
  • 101
  • 3
  • 12
-2
votes
1 answer

How to configure zip4j to use bouncycastle encryption (fips provider)

I need to create a password protected (encrypted) ZIP in java and I am using zip4j for it. I now need to use a specific cryptographic provider (bouncy castle fips version) with zip4j but I could not figure out how to configure zip4j to use it if at…
-2
votes
2 answers

how to remove file from password protected Zip File using zip4j ? getting exception

Here is My code but it's giving an exception. net.lingala.zip4j.exception.ZipException: cannot delete old zip file at net.lingala.zip4j.util.ArchiveMaintainer.restoreFileName(ArchiveMaintainer.java:234) at…
Kishan
  • 3
  • 1
  • 6
-3
votes
2 answers

How to fix the problem that putNextEntry(ZipEntry) does not accept ZipParameters?

When I include fileName and zipParameter in putNextEntry(): ZipOutputStream.putNextEntry(fileName, zipParameter); It shows an error: The method putNextEntry(ZipEntry) in the type ZipOutputStream is not applicable for the arguments (String,…
1 2 3
8
9