Skip to main content

jar file for persistence library

1 reply [Last post]
dierre
Offline
Joined: 2008-09-07

I'm currently learning to work with Hibernate. In an example I need to do the import of persistence.*;

When I'm doing this import there occurs an error like: "The import persistence cannot be resolved". I think I have to add a jar-file that contains the persistence library. But I don't have a clou witch library I have to add.

Does anyone here know how I can resolve this problem. Oh, I'm working with Eclipse as IDE.

Thank you in advance
Dieter

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
peppeme
Offline
Joined: 2007-05-30

You must import this java library in your project

antlr-2.7.6.jar
asm.jar
asm-attrs.jar
cglib-2.1.3.jar
c3p0-0.9.1.jar
commons-collections-2.1.1.jar
commons-logging-1.0.4.jar
concurrent-1.3.2.jar
dom4j-1.6.1.jar
ehcache-1.2.3.jar
ejb3-persistence.jar
hibernate3.jar
hibernate-annotations.jar
hibernate-entitymanager.jar
hibernate-commons-annotations.jar
javassist.jar
jcommon-1.0.12.jar
log4j-1.2.11.jar

Download this file from hibernate site
http://www.hibernate.org/6.html

-----
[ITA]
http://programmaremobile.blogspot.com