Java examples for File Path IO:Zip File
Open Zip File Using ZipFile Class
import java.io.IOException; import java.util.zip.ZipFile; public class Main { /*from w w w. j a v a2 s . c om*/ public static void main(String args[]) { try { ZipFile zipFile = new ZipFile("c:/Folder/WebFiles.zip"); System.out.println(zipFile.getName() + " Opened for reading!"); zipFile.close(); } catch(IOException ioe) { System.out.println("Error opening zip file" + ioe); } } }