• 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: 17309
11
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
 
No one can make you feel inferior without your consent - Eleanor Roosevelt. tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!