JPA+Tutorial+Project+Setup

Create Java Project
Next we need to create a Java project. We'll keep the source separate from the bin directory:
 * 1) Pull down the **File** menu and select **New:Project**
 * 2) Select **Java Project** and click on **Next**
 * 3) Enter a project name: ** **, again read this to know why I did not use a space in the project name.
 * 4) Make sure "Create new project in workspace" is selected.
 * 5) Make sure the JRE selected is 1.5.x or higher. If such a JRE does not show in the list, you can add it through Window->Preferences->JAVA->Installed JRE's.
 * 6) Select **Create separate source and output folders**
 * 7) Click **Finish**

Create folders and packages

 * 1) Expand your ** ** folder
 * 2) Select the **src** directory
 * 3) Right-click, select **new:Folder**
 * 4) Use the name **META-INF**
 * 5) Make sure ** ** is still selected, right-click and select **New:Source Folder**
 * 6) Enter **test** and click **OK**

Add Required Libraries
We now need to add two libraries. Note that these steps assume you've already worked through the first tutorial and are working in the same workspace. If you, you'll need to create user libraries. Review Creating User Libraries.
 * 1) Edit the project properties. Select your ** ** and either press **alt-enter** or right-click and select properties.
 * 2) Select **Java Build Path**
 * 3) Click on the **Libraries** tab
 * 4) Click on **Add Library**
 * 5) Select **User Libraries** and click **Next**
 * 6) Select **JPA_JSE** by click on the check box
 * 7) Click **OK**
 * 8) Click on **Add Library** again
 * 9) Click on **JUnit**
 * 10) Click **Next**
 * 11) In the pull-down list, select **JUnit 4**
 * 12) Click **Finish**
 * 13) Click **OK**

If you'd like some background information on JUnit, please go here.

Configure Persistence Unit
include page="JpaPersistenceUnit"