Hibernate learning note 01--Building hibernate framework in Eclipse environment

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.