What is a IncompatibleClassChangeError exception in Java?

后端 未结 6 1544
太阳男子
太阳男子 2020-12-10 02:26

i am working on a small application and I am trying to use Hibernate Annotations to map my entities. I wanted to test if everything is alright when i got this exception :

6条回答
  •  佛祖请我去吃肉
    2020-12-10 02:38

    Right, erickson has identified the issue correctly.

    This is likely caused by having two conflicting versions of the same type definition in your classpath. For example, library-version2.jar defines some stuff, but you've also got library-version5.jar in your classpath.

    At runtime, this results in the pain and suffering erickson describes.

提交回复
热议问题