I have an application which includes 15 external jar files listed below.
If I DO NOT include hibernate-core.jar I get this error:
Code:
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.core.KeyFactory
at org.hibernate.impl.SessionFactoryImpl.<clinit>(SessionFactoryImpl.java:308)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1043)
at util.SessionHandler.<clinit>(SessionHandler.java:9)
at main.RegisterMain.main(RegisterMain.java:31)
When I DO include hibernate-core.jar the problem is solved on Mac OSX, but not on Windows 7 and XP.
Does anyone has an idea why this is?
Does anyone know of other differences between platforms Hibernate can come across?
The included jars:
antlr-2.7.6.jar
c3p0-0.9.1.2.jar
cglib-2.2.jar
commons-collections-3.1.jar
commons-lang-2.5.jar
commons-logging-1.1.1.jar
dom4j-1.6.1.jar
ehcache-1.5.0.jar
hibernate3.jar
hibernate-core.jar
javassist-3.9.0.GA.jar
jta-1.1.jar
log4j-1.2.15.jar
slf4j-api-1.5.11.jar
slf4j-log4j12-1.5.11.jar