Hello,
I installed Hibernate Tools on Eclipse JEE platform. However, if I add the simple line
Code:
EntityManagerFactory emf = Persistence.createEntityManagerFactory("manager1");
in the function
Code:
public static void main(String[] args)
the class EntityManagerFactory cannot be resolved. Typically, this means that a library is missing in the class path. Unfortunately I don't know what library this is.
Reading
http://docs.jboss.org/hibernate/stable/entitymanager/reference/en/html/configuration.html tells me to add
+ hibernate3.jar (found and added)
+ libraries available in lib/required (not found in my Hibernate installation under /usr/local/eclipse/plugins/org.hibernate.eclipse_3.3.1.v201006011046R-H111-GA/*)
+ lib/jpa/hibernate-jpa-2.0-api-1.0.0.Final.jar (not found in my Hibernate installation)
I am using Eclipse Java EE IDE for Web Developers, build id: 20100218-1602. I found this page
http://www.jboss.org/tools/download/installation/update_3_2.html and thus installed JBoss Tools 3.1 for Eclipse 3.5 with the help of the software installer inside Eclipse. I didn't select the whole JBoss plug-in suite, just the Hibernate package for installation. Seemed to complete successfully.
What jars do I have to add to the class path in order to get the EntityManagerFactory class resolved? Or is it anything else?
Thanks for any help.
Regards,
Andy