Some days ago, I had to decompress a zipped file, as usual before reinvent the wheel I googled just a little and I found an interesting class. I made only some minor changes (thanks to netbeans) to the class and here you are the result:

Add this class to your project and then when you need it, simple add the following two lines:

    UnZip unZip = new UnZip();


    unZip.unZipIt("source.zip","PathToDestinationDirectory");

 

the original sources are at http://www.mkyong.com/java/how-to-decompress-files-from-a-zip-file/

gg1