Forums Register Login

Hibernate First example error

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
You are missing the Hibernate jars in your classpath.

Mark
Without deviation from the norm, progress is not possible - Zappa. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1126 times.
Similar Threads
Exception while firing the join queries
Error running Hibernate Sample Application
Hibernate
Problem in running Hibernate example
insertion with hibernate
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 04:09:35.