不过以下zipUtil需要用到apache的jar包,相关地址在http://download.csdn.net/my
public static void unZipFile(String archive, String decompressDir)throws IOException, FileNotFoundException, ZipException
{BufferedInputStream bi;
ZipFile zf = new ZipFile(archive, "UTF-8");
Enumeration e = zf.getEntries();
while (e.hasMoreElements())
{
ZipEntry ze2 = (ZipEntry) e.nextElement();
String entryName = ze2.getName();
String path = decompressDir + "/" + entryName;
if (ze2.isDirectory())
{
System.out.println("正在创建解压目录 - " + entryName);
File decompressDirFile = new File(path);
if (!decompressDirFile.exists())
{
decompressDirFile.mkdirs()