Extract files from Zip archive in Java

There are few open source libraries available to extract files from Zip archive. Apache common compress is one of the popular library. We can use gradle to resolve the dependency of Apache common compress. For this, we have to make an entry under dependency in build.gradle like this: dependencies { compile 'org.apache.commons:commons-compress:1.10' } To run this sample make sure to update your path of the zip file.