Here in this section you will learn how to download and configure the Hibernate library files for developing the applications. The latest version of Hibernate comes with the all extra libraries necessary for developing the application.
Since we are using the MySQL database for testing the application we will also have to download the JDBC driver for MySQL. If you are using other database you should download the JDBC driver for you database from the official website of your database server.
Downloading the latest version of Hibernate
The latest version of Hibernate can be downloaded from it official website at http://hibernate.org/orm/downloads/. At the time of writing of the tutorial the final version of the Hibernate was Hibernate 4.2.8.Final.
Visit the website at http://hibernate.org/orm/downloads/ and you will find the links to download the software. Here is the screen shot of the same:
We have downloaded the file hibernate-release-4.2.8.Final.zip. It includes the libraries necessary to run the Hibernate based applications.
Copy the downloaded file (hibernate-release-4.2.8.Final.zip) into a directory and then unzip it. Here the screen shot of the content of the file:
Here you will find documentation, lib and project directories. Documentation directory contains the documentation and tutorials. The lib directory contains the library files and project directory contains many example projects.
Here is the content of lib directory:
The lib directory contains the required folder which contains the required library of Hibernate. It contains other libraries also.
Here is the screen shot of lib/required folder:
Documentation directory contains following sub-directories:
Installing Hibernate is very easy process, you just have to unzip and then copy the library files from its lib directory. If you are using Eclipse, you have to copy the files into lib directory of your project. After copy the file in your project's lib directory, add the lib files in the class build path.
For copying the file into build path:
This will make the jar files available in your project. In the next section we will learn about the Hibernate Configuration files used in the project.
Posted on: December 19, 2013 If you enjoyed this post then why not add us on Google+? Add us to your Circles