Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

hibernatetool error

 
Ranch Hand
Posts: 89
Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am unable to use the following:

<taskdef name="hibernatetool"
classname="org.hibernate.tool.ant.HibernateToolTask">

Pointing the cursor on taskdef shows the following error:

Unable to load type(s): org.hibernate.tool.ant.HibernateToolTask

I have set hibernate in the classpath, but still, i see the following error.

Any suggestions are most welcome.

- Nidhi
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like an Ant problem. Moving...
 
Saloon Keeper
Posts: 24533
167
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's 2 classpaths here. One is the classpath used by the ant taskdef and the other is the one used by the execution of the ant task. The ant taskdef's classpath is the one that will locate the hibernate ant task tool.

For more info on taskdef classpath check the ant taskdef docs. It's pretty straightforward.
 
reply
    Bookmark Topic Watch Topic
  • New Topic