File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes hibernate-tools.jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "hibernate-tools.jar" Watch "hibernate-tools.jar" New topic


pedro costa

Joined: Mar 24, 2011
Posts: 7
Good afternoon in my timezone.

I already had seen a few posts with similar questions , but the answer to them don't correct my problem.

First of all i'm new in hibernate, and i'm trying to learn JPA to.
I'm reading the "java persistence with hibernate" book and doing the first exercise "Hello World" persisting the messages objects.
the build.xml file have the follow taskdef and target :

<taskdef name="hibernatetool"

<target name="schemaexport" depends="build, copymetafiles"
description="Exports a generated schema to DB and file">
<hibernatetool destdir="${basedir}">
<classpath path="${build}"/>
<configuration configurationfile="${build}/hibernate.cfg.xml"/>

update = "true"

when i run this in the command-line it throws the following error:
Taskdef A class needed by class org.hibernate.tool.ant.EnversHibernateToolTask cannot be found org/hibernate/tool/ant/HibernateToolTask

I think this class is defined in the hibernate-tools.jar, i had download file but within this zip there is no such jar.
I already have seen posts anwers talking about a plugins folder , saying that jar is in this folder(plugins) , but there is no such folder inside that zip.
1) So where i can get this hibernate-tools.jar ?
2)Is the hibernate-tools.jar necessary, am i doing something wrong ?

I am a little desperate because i can not advance with that.

With the best regards.
I agree. Here's the link:
subject: hibernate-tools.jar