0

I am running a program on eclipse and I keep getting this error:

Unable to initialize main class com.logic.AddProduct Caused by: java.lang.NoClassDefFoundError: org/hibernate/Session

Any explainations?

1 Answers1

0

Hibernate JAR (hibernate-core i suppose) or onr of its dependencies is probably not in your runtime classpath.

  • can you clarify? – csanders1982 Aug 11 '22 at 03:56
  • Your error means that one of the required class for or.hibernate.Session is not in your classpath when you run the application. More info [on this post](https://stackoverflow.com/questions/34413/why-am-i-getting-a-noclassdeffounderror-in-java) – MathTheJinx Aug 11 '22 at 13:11