-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Use of Hibernate with Eclipse 3.5.x Galileo
PostPosted: Tue Sep 14, 2010 3:20 am 
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


Top
  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.