• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate First example error

 
abhi singhal
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I tried running my first samle from the tutorial given at Hibernate.org webite http://www.hibernate.org/hib_docs/v3/reference/en/html/tutorial.html

I gave the command: ant run -Daction=store

It gave me below mentioned error
run:
[java] java.lang.NoClassDefFoundError: org/hibernate/Session
[java] Exception in thread "main"
[java] Java Result: 1

BUILD SUCCESSFUL
Total time: 1 second

I am not sure where exacly is the problem, it looks more like it not able to find the "public static void main()" in the class.

Regards,
Abhinav
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are missing the Hibernate jars in your classpath.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic