I am an Eclipse user attempting to write my first Hibernate code using IntelliJ. I downloaded the hibernate libraries through the IDE and configured my data source and generated the the AnnotationClasses and HibernateUtil file using IntelliJ. However, I get the following error thrown from my HibernateUtil class when trying to initialize the session:
Initial SessionFactory creation failed. java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/ReflectionManager
When viewing the project in the "Scope: Production" view I don't see any of the libraries I am attempting to use to run this code. My guess is that I need to get IntelliJ to reference the libraries when attempting to run the code from the Production perspective. What do I need to do to get the referenced libraries into this perspective?