java.lang.NoClassDefFoundError: com.sun.org.apache.commons.beanutils.PropertyUtils
问题 i am trying to use apache commons collections and predicate as follows: List<Cat> bigList = ....; // master list Collection<Cat> smallList = CollectionUtils.select(bigList, new Predicate() { public boolean evaluate(Object o) { Cat c = (Cat)o; return c.getFavoriteFood().equals("Wiskas") && c.getWhateverElse().equals(Something); } }); and the jars I have in my classpath are: commons-beanutils-1.8.3.jar commons-collections-3.1.jar commons-logging-1.1.jar but in runtime I get the following