Home >Java >javaTutorial >About java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap error solution

About java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap error solution

PHP中文网
PHP中文网Original
2017-06-19 10:13:462756browse

In JavaEE development, when encapsulating the data in the configuration file or the data submitted by the user form in the corresponding properties of the corresponding JavaBean object: In actual development, use the third method toolkit BeanUtils (commons- beanutils-xxx.jar depends on commons-logging-xx.jar).

For example, in the JavaWeb project, the blogger imported the jar packages: commons-beanutils-1.9.3.jar and commons-logging-1.2.jar

This is an error when running: eption in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap

It seems that you need to import the commons-collections-xx.jar package

Then the blogger introduced commens-collections4-4.1.jar which did not solve the problem

Finally, I found that the problem was solved after importing commens-collections-3.2.2.jar

The above is the detailed content of About java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap error solution. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn