JPA+Tutorial+1+-+Initial+Setup

This example requires Java 5 (JDK 1.5) or later and Eclipse 3.2 or later. This page gives you a link to all of the downloads you'll need to get to get started. While I might mention specific version numbers, it's a good bet that newer versions should work as well... of course that's not always the case.


 * //Note://** We need the jar file that contains javax.persistence and the various annotations associated with JPA. You can either download JEE or get it from somewhere else. For this series of tutorials, we eventually use the JBoss EJB3 Embeddable container, so we'll use that to avoid an extra 150+ meg download for one jar file.

Download Everything
First the basic stuff:
 * 1) Download [|JSE 5] (choose just JDK 5.0 (there will be an update after it))
 * 2) Download [|Eclipse]

Next, the libraries:
 * 1) Download [|Hibernate 3.3.1 GA]
 * 2) Download [|Hibernate Annotations 3.4.0 GA]
 * 3) Download [|Hibernate Entity Manager 3.4.0.GA]
 * 4) Download [|HSQL Database Engine 1.8.0.10]
 * 5) Download [|SLF4J 1.5.8]
 * 6) Download [|Open EJB 3.1.1]

Setup the JDK & Eclipse

 * 1) Install the JSE 5.
 * 2) Extract the eclipse download somewhere. For all examples I use C:/eclipse.

Extract Jar Files
Extract each of the libraries to some location. In my case I extracted everything to C:/libs, so I have the following directories > C:/libs/hibernate-annotations-3.4.0.GA > C:/libs/hibernate-entitymanager-3.4.0.GA > C:/libs/hibernate-distribution-3.3.1.GA > C:/libs/hsqldb-1.9.0-beta3 > C:/libs/openejb-3.1.1 > C:/libs/slf4j-1.5.8