这个问题在这里已有答案:
当我运行我的程序时,我在线程“main”java.lang.NoClassDefFoundError
中遇到这种类型的错误
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/compress/archivers/zip/ZipFile
看起来你错过了类路径中的Apache Commons Compress库。找出应该指定其他库的位置并将其添加到那里 - 这在很大程度上取决于您的运行环境,但您没有提供任何更多详细信息。