可以copy去试验下:
package cn.zwei.util;
import java.io.File;   
import java.io.FileInputStream;   
import java.io.FileOutputStream;   
import java.util.ArrayList;   
import java.util.zip.ZipEntry;   
import java.util.zip.ZipInputStream;   public class ZipToFile {  /**  
     * 将文件解压缩  
     * @param sZipPathFile 需要解压的文件  
     * @param sDestPath 解压后的文件路径  
     * @return  
     */  
    public static boolean zipToFile(String sZipPathFile, String sDestPath) {   
        boolean flag = false;   
        ArrayList allFileName = new ArrayList();   
        try {   
            // 先指定压缩档的位置和档名,建立FileInputStream对象   
            FileInputStream fins = new FileInputStream(sZipPathFile);   
            // 将fins传入ZipInputStream中   
            ZipInputStream zins = new ZipInputStream(fins);   
            ZipEntry ze = null;   
            byte ch[] = new byte[256];   
            while ((ze = zins.getNextEntry()) != null) {   
                File zfile = new File(sDestPath + ze.getName());   
                File fpath = new File(zfile.getParentFile().getPath());   
                if (ze.isDirectory()) {   
                    if (!zfile.exists())   
                        zfile.mkdirs();   
                    zins.closeEntry();   
                } else {   
                    if (!fpath.exists())   
                        fpath.mkdirs();   
                    FileOutputStream fouts = new FileOutputStream(zfile);   
                    int i;   
                    allFileName.add(zfile.getAbsolutePath());   
                    while ((i = zins.read(ch)) != -1)   
                        fouts.write(ch, 0, i);   
                    zins.closeEntry();   
                    fouts.close();   
                }   
            }   
            fins.close();   
            zins.close();   
            flag = true;   
        } catch (Exception e) {   
            System.err.println("Extract error:" + e.getMessage());   
        }   
        return flag;   
    }   
       
    public static void main(String[] args){   
        String sZipPathFile = "D:/a.zip";
        String sDestPath = "D:/";   
        ZipToFile.zipToFile(sZipPathFile,sDestPath);//将D盘下的test.zip文件解压到c盘下   
    }   }