Exception in thread "main" java.lang.NoClassDefFoundError: javax/persistence/Cac
程序员文章站
2022-07-12 16:15:24
...
1、现象
错误信息:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/persistence/Cac
2、解决
javax.persistence.Cacheable 是 JPA 2.0 规范中的东西!
需要加入hibernate-distribution-3.5.0-Final\lib\jpa目录下的hibernate-jpa-2.0-api-1.0.0.Final.jar 到path中
错误信息:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/persistence/Cac
2、解决
javax.persistence.Cacheable 是 JPA 2.0 规范中的东西!
需要加入hibernate-distribution-3.5.0-Final\lib\jpa目录下的hibernate-jpa-2.0-api-1.0.0.Final.jar 到path中
推荐阅读
-
解决XML转JSON串时报错:Exception in thread "main" java.lang.NoClassDefFoundError: nu/xom/Serializer
-
Exception in thread "main" java.lang.NoClassDefFoundError: javax/persistence/Cac
-
常见的Exception in thread"main" java.lang.NoClassDefFoundError的几种解决方式
-
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jetty/server/SessionManager
-
Exception in thread “main“ java.lang.NoClassDefFoundError: org/mybatis/generator/api/dom/xml/Element
-
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/Lin
-
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/Lin
-
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/spark/sql/