1. Download and unzip Hibernate-distribution-3.3.2.ga.zip and Slf4j-1.5.8.zip
2. Locate in the Hibernate-distribution-3.3.2.ga folder:
Hibernate3.jar
3. Locate the necessary jar packages in the Hibernate-distribution-3.3.2.ga/lib/required folder for hibernate to run:
Antlr-2.7.6.jar
Commons-collections-3.1.jar
Dom4j-1.6.1.jar
Javassist-3.9.0.ga.jar
Jta-1.1.jar
Slf4j-api-1.5.8.jar
4. Locate under the slf4j-1.5.8 folder:
Slf4j-nop-1.5.8.jar
5. Create a new Dynamic Web Project project in Eclipse named Hibernatehelloworld, such as:
5.1 The building of a good engineering structure is as follows:
6. Place the above 8 jar packages into the hibernatehelloworld/Webcontent/web-inf/lib folder, such as:
7. Select Windows-preferences-java-build Path-user Libraries as
7.1 New casually named "Hibernate" like:
7.2 OK
7.3 Add the jar package for our custom "hibernate".
Add JARs. and find hibernatehelloworld/webcontent/Web-inf/lib will just put in Lib 8 package selected because these 8 jar packages are hibernate required package , so put it in one of our custom Libraries, and click OK, such as:
8. The steps to add hibernate support for your project are as follows:
8.1 Right-click Hibernatehelloworld--Build path--Configure build path .
8.2 If
8.3 Add Library ... User Library---> Next
8.4 Select "Hibernate" Finish.
9. Take a look at our project more than a hibernate Libraries, such as:
10. At this point, we have finished adding the packages required for our project.
Hibernate learning note 01--Building hibernate framework in Eclipse environment