Hibernate - SPLessons

Hibernate Jar Files

Home > Lesson > Chapter 7
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

Hibernate Jar Files

Hibernate Jar Files

shape Description

The chapter explains about Hibernate Jar Files. Hibernate is like a database and it was developed by the Gavin king in 2001, the current version of hibernate is 4.3.6 was released in July 16th, 2014 and the main asset of hibernate is an ORM (Object Relational Model) and to vanish the flaws of JDBC hibernate came. ORM inside utilization Java Data Base Connectivity to furnish joining with the database. Hibernate is a Framework, so Frameworks Software's will be in the form of group of jar files. Following are the steps to be performed while downloading hibernate jar files.

shape Step-1

Download the latest version of Software in http://hibernate.org/orm/downloads/.

shape Step-2

Search for "hibernate-search-5.4.0.final-dist.zip" and download it.

shape Step-3

Open the file downloaded and extract the Zip folder. A folder like hibernate-search-5.4.0.Final appears like below. Click on Folder.

shape Step-4

Three folders appears like below.
  • dist
  • document
  • project
Select the dist(distribute) folder.

shape Step-5

Click on lib folder. It contains Hibernate Jar Files like below. Hibernate Software download will not only provide the jar files, but also documentation and source codes.
  • lib folder contain Hibernate Jar Files.
  • Project contain Source code,
  • documentation contain API documentation of Hibernate.

shape Step-6

Add the below mentioned jar files in CLASSPATH. This can be done in command prompt. For example, copy the class path for below mentioned two jar files like below.
  • hibernate-search-engine.5.4.0.jar: C:\Users\SPlessons\Downloads\hibernate-search-5.5.2.Final-dist.zip\hibernate-search-5.5.2.Final\dist\hibernate-search-engine-5.5.2.Final.jar;
  • antlr-2.7.7.jar:  C:\Users\SPlessons\Downloads\hibernate-search-5.5.2.Final-dist.zip\hibernate-search-5.5.2.Final\dist\hibernate-search-engine-5.5.2.Final.jar; C:\Users\SPlessons\Downloads\hibernate-search-5.5.2.Final-dist.zip\hibernate-search-5.5.2.Final\dist\lib\required\antlr-2.7.7.jar;
Likewise copy the class paths for the remaining jar files.
  1. dom4j_1.6.1.jar,
  2. Java sist-3.1.8.1.jar,
  3. geronimo-jta-1.1_spec_1.1.1.jar,
  4. hibernate-core-5.0.0.Final.jar,
  5. hibernate-jpa-2.1-api-1.0.0.jar,
  6. hibernate-commons-annotations-Final.jar,
  7. DataBase jar(while connecting to the Oracle Database, add the ojdbc14.jar)

shape Step-7

Now open command prompt and set the path using set class path command like below.

Summary

shape Key Points

  • While doing the execution of a program in any IDE, jar files should be added.
  • Download the latest release version of jar files.
  • Import MYSQL connecting jar files also to an IDE.