unzip解压带密码的压缩包

  

// 解压
        String pw = "123456";
        String cmd = "unzip -P " + pw + " /root/lianliandownload/" + fileName + " -d /root/lianliandownload ";
        try {
            Runtime.getRuntime().exec(cmd);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
原文地址:https://www.cnblogs.com/toSeeMyDream/p/8867265.html