In this tutorial you will see how to configure Hibernate to Eclipse or STS or MyEclipse.

  1. Download Eclipse Latest version and install in your machine.
  2. Download Hibernate3 Latest Version.
  3. Download MySQL database Latest version.
  4. Download JConnector (MySQL Database Driver)

Step 1 : Now open Eclipse you get following window-

Setting Up Hibernate To Eclipse

Step 2:  Go to File->New->Java Project

Setting Up Hibernate

Step 3: Click on Java Project you will get

Setting Up

Step 4: Click Next -> Finish you will get

Setting Up Hibernate Eclipse

Step 5:Right Click on Hibernate Project->go to Property ->Java Build Path->Library->Add Library

Setting Up Hibernate Eclipse Example

Step 6: Click on User Library ->Next->User Libraries..

on New window click on New a pop up of new window is open and fill User Library Name on the Text Field and Click on OK.

Setting Up Hibernate Eclipse output

Step 7: Click on Add JARs.. go to specific path of the window where you are save Hibernate Zip file and add following required jar to your Application

  • antlr-2.7.6
  • dom4j-1.6.1
  • hibernate3
  • hsqldb
  • javassist-3.4.GA
  • jta-1.1
  • slf4j-api-1.5.6
  • slf4j-simple-1.5.6
  • commons-collections-3.1
    Eclipse
    Finally you will get Hibernate Library in your application
     Setting Up Hibernate Example
    Step 8 : Now install MySQL Database on your machine and add driver library to your application
    Go to Project Property->Java Build Path->Library->Add External JARs..->Select Driver jar file->click finish
     
    Hibernate Eclipse

Now your application fully configured with all required libraries.

In next chapter you get how to make my Fist Hibernate Application – Dinesh

<<Previous Chapter 2<<    >>Next Chapter4>>