Home >Java >javaTutorial >About java.lang.NoClassDefFoundError: org/apache/commons/collections/FastHashMap error solution
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!