hibernate imports

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eazyigz
    New Member
    • Sep 2008
    • 6

    hibernate imports

    I am trying to run a Java file that the Hibernate Tutorial states is HibernateUtil.j ava. I get a compile error for the imports:
    package org.hibernate does not exist
    package org.hibernate.c fg does not exist


    What is up with that???
    Last edited by eazyigz; Nov 14 '08, 06:15 PM. Reason: annotation
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    That sounds like a classpath issue. If you're starting your project from the command line, this article and this site should help. If you're using an IDE, you'll have to add the hibernate jar to the classpath in that. (How you do that depends on the IDE.)

    Greetings,
    Nepomuk

    Comment

    Working...