java.lang.NoClassDefFoundError: Could not initialize class org.com.hibernate.HibernateUtil

后端 未结 4 1380
一向
一向 2021-01-24 08:18

This is my hibernate util code

public class HibernateUtil {

private static final SessionFactory sessionFactory = buildSessionFactory();

private static SessionF         


        
4条回答
  •  温柔的废话
    2021-01-24 08:32

    use this jar:::

    antlr-2.7.7
    commons-collections-3.2.1
    dom4j-1.6.1
    hibernate-commons-annotations-4.0.1.Final
    hibernate-core-4.1.9.Final
    hibernate-entitymanager-4.1.9.Final
    hibernate-jpa-2.0-api-1.0.1.Final
    javassist-3.17.1-GA
    jboss-transaction-api_1.1_spec-1.0.0.Final
    jboss-logging-3.1.0.GA
    sqljdbc4-2.0(as per your database used)
    

    found from:

    http://sourceforge.net/projects/hibernate/files/latest/download?source=files

提交回复
热议问题