I’m wondering, how do you unzip a zip file in java?
I first tried:
String source = "forge.zip";
String destination = "some/destination/folder";
try {
zipFile = new ZipFile(source);
zipFile.extractAll(destination);
} catch (ZipException e) {
e.printStackTrace();
}
It gives says that zpFile does not have an extractAll method.
Is that true?
I cannot tell what problem you’re having. But I have done this before several times with
ZipInputStreams andZipEntrys, and I know this will work: