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:
Next, the libraries:
- Download Hibernate 3.3.1 GA
- Download Hibernate Annotations 3.4.0 GA
- Download Hibernate Entity Manager 3.4.0.GA
- Download HSQL Database Engine 1.8.0.10
- Download SLF4J 1.5.8
- Download Open EJB 3.1.1
Setup the JDK & Eclipse
- Install the JSE 5.
- 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
Comments