JBoss.org Community Documentation

Chapter 1. Download and install Hibernate Tools

1.1. JBoss Tools
1.2. Eclipse IDE
1.2.1. Usage of Eclipse WTP
1.3. Ant

Hibernate Tools can be used "standalone" via Ant 1.6.x or fully integrated into an Eclipse 3.3.x + WTP 2.x based IDE, such as JBoss Tools or a default Eclipse 3.3.x + WTP 2.x installation. The following describes the install steps in these environments.

JBoss Tools 2.x includes Hibernate Tools and thus nothing is required besides downloading and installing JBoss Tools. If you need to update to a newer version of the Hibernate Tools just follow the instructions in the Eclipse IDE section.

To install into any Eclipse 3.3.x based Eclipse IDE you can either download the Hibernate Tools distribution from the Hibernate website or use the JBoss Tools Update Site (see also http://tools.hibernate.org for links to the update site).

If you download the Hibernate Tools distribution you need to place the /plugins and /feature directory into your eclipse directory or eclipse extensions directory. Sometimes Eclipse does not automatically detect new plugins and thus the tools will not be activated. To ensure eclipse sees these changes just clean up the cached plugin information by running eclipse with the -clean option, e.g. eclipse -clean. Using the updatesite does not require any additional steps.

Note

If you need more basic instructions on installing plugins and general usage of eclipse then check out https://eclipse-tutorial.dev.java.net/ and especially https://eclipse-tutorial.dev.java.net/visual-tutorials/updatemanager.html which covers using the update manager.

To use the tools via Ant you need the hibernate-tools.jar and associated libraries. The libraries are included in the distribution from the Hibernate website and the Eclipse updatesite. The libraries are located in the eclipse plugins directory at /plugins/org.hibernate.eclipse.x.x.x/lib/tools/. These libraries are 100% independent from the eclipse platform. How to use these via ant tasks are described in the Ant Tools chapter.