-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: java.lang.NoClassDefFoundError: com/hibernate/Main
PostPosted: Tue Jan 10, 2012 9:23 am 
Newbie

Joined: Fri Jan 06, 2012 9:14 am
Posts: 3
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.html
I 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...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.