Copyright © tutorialspoint.com

Hibernate Environment Setup

previous next


This chapter will explain how to install Hibernate and other associated packages to prepare a develop environment for the Hibernate applications. We will work with MySQL database to experiment with Hibernate examples, so make sure you already have setup for MySQL database. For a more detail on MySQL you can check our MySQL Tutorial.

Downloading Hibernate:

It is assumed that you already have latest version of Java is installed on your machine. Following are the simple steps to download and install Hibernate on your machine.

Hibernate Directories

Installing Hibernate:

Once you downloaded and unzipped the latest version of the Hibernate Installation file, you need to perform following two simple steps. Make sure you are setting your CLASSPATH variable properly otherwise you will face problem while compiling your application.

Hibernate Prerequisites:

Following is the list of the packages/libraries required by Hibernate and you should install them before starting with Hibernate. To install these packages you would have to copy library files from /lib into your CLASSPATH, and change your CLASSPATH variable accordingly.

S.N.Packages/Libraries
1dom4j - XML parsing www.dom4j.org/
2Xalan - XSLT Processor http://xml.apache.org/xalan-j/
3Xerces - The Xerces Java Parser http://xml.apache.org/xerces-j/
4cglib - Appropriate changes to Java classes at runtime http://cglib.sourceforge.net/
5log4j - Logging Faremwork http://logging.apache.org/log4j
6Commons - Logging, Email etc. http://jakarta.apache.org/commons
7SLF4J - Logging Facade for Java http://www.slf4j.org

previous next

Copyright © tutorialspoint.com