As Manuel Jordan said, this is because of the difference in versions. I just got this error and solved it by installing the same version of org.springframework: spring -core in each of my modules.
My project structure is as follows:
projectname module1 module2 module3
I wrote a test in module2:
projectname module1 module2 test <package>/TestClass.java module3
When I ran this test, I got this error:
java.lang.NoClassDefFoundError: org/springframework/core/ErrorCoded
After ensuring that each module has the same version of the org.springframework: spring -core dependency , the test runs .
Chris neve
source share