0

I need to extract a zip file using java code. Using java.util.zip, I am unable to extract files in the exact directory structure as inside a zip file, I keep getting IOException: Parent of file is not a directory, please advice.

Jinith
  • 997
  • 6
  • 14
  • 27

2 Answers2

2

Here is some solution: How should I extract compressed folders in java?

Community
  • 1
  • 1
Martin Ždila
  • 2,998
  • 3
  • 31
  • 35
0

Create the appropriate directory before attempting to extract the file.

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358