Hi i am new to hibernate.I learning hibernate through
http://www.vaannila.com/hibernate/hibernate-example/hibernate-mapping-one-to-one-using-annotations-1.htmlI added the following jars
antlr-2.7.6
commons-collections-3.1
dom4j-1.6.1
hibernate3
hsqldb
javassist-3.4.GA
jta-1.1
slf4j-api-1.5.6
slf4j-simple-1.5.6
hibernate-commons-annotations.jar
ejb3-persistence.jar
hibernate-annotations.jar
hibernate-jpa-2.0-api-1.0.0.Final.jar
But i got the following error.
java.lang.NoClassDefFoundError: com/hibernate/Main
Caused by: java.lang.ClassNotFoundException: com.hibernate.Main
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Exception in thread "main"
I am using eclipse Indigo Hibernate Tools 3.4.0.v20111213-1944-H40-M5 version.
Can any tel solution for me...
Thanks...