Adding Support for Java Persistence

See Also

Support for Java Persistence is available to Java EE and Java SE applications running on the Java EE 5 and Java EE 6 platforms. If you have a J2EE 1.4 application it is possible to use Java Persistence if the target container is running on the Java EE 5 or Java EE 6 platform. The container does not need to be a Java EE 5 container.

If your target server is not a Java EE 5 container, you can add support for Java Persistence functionality by adding the EclipseLink library to the project or the classpath of the container. The EclipseLink library contains the necessary libraries to support Java Persistence. The EclipseLink library is bundled with the IDE.

To add Java Persistence support to the project:

  1. In the Projects window, expand your project node, right-click the Libraries node and choose Add Library.
  2. In the Add Library dialog box, select EclipseLink and click Add Library.

When you add the EclipseLink library to your project, the EclipseLink library will be packaged with the EAR or WAR file when you build the project.

See Also
Working with Enterprise Applications
Managing the Classpath
About Java Class Libraries
About Java Persistence

Legal Notices