I'm trying to unzip this file using Java.I found this guide: What is a good Java library to zip/unzip files? But I'm getting an error: The method extractAll(String) is undefined for the type ZipFile
Code:
String dir = System.getProperty(user.dir);
String source = dir+"/file.zip";
String destination = dir;
try {
ZipFile zipFile = new ZipFile(source);
zipFile.extractAll(destination);
} catch (ZipException e) {
e.printStackTrace();
}
EDIT: I found the solution. It's rather embarrassing, but I imported the wrong one -.-