且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

#java.lang.NoClassDefFoundError:org/apache/commons/digester/Digester

更新时间:2022-11-17 10:47:30

如果抛出NoClassDefFoundError,则应检查是否在类路径中正确加载了所需的jar,或者您正在混合使用的版本和类名可能不同(或这是行为). 检查您要添加的Digester jar是否是必需的.

If NoClassDefFoundError is thrown you should check that needed jars are properly loaded in the classpath, or maybe you are mixing versions and class names may be different (or it's behavior). Check if the Digester jar you are adding is the one that is needed.

检查这些罐子是否正确装入:

Check if these jar are correctly loaded:

jasperreports-.jar;
jasperreports-javaflow.jar;
commons-beanutils.jar;
commons-collections.jar;
commons-logging.jar;
commons-digester.jar

在eclipse实例下查看jasper report plugin文件夹.在此文件夹中搜索公共摘要" jar,然后在您的项目中复制相同的jar(和其他列出的jar).

Take a look on jasper report plugin folder under your eclipse instance. Search for the commons digester jar inside this folder and copy the same jar (and the other of listed jars) in your project.