These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: package org.hibernate does not exist
PostPosted: Mon Jun 05, 2006 11:52 am 
Newbie

Joined: Mon Jun 05, 2006 11:44 am
Posts: 11
I'm following the Introduction to Hibernate tutorial and am trying to compile the project after adding the HibernateUtil helper class (HibernateUtil.java). When I run ant, I get the following:

Code:
/src/util/HibernateUtil.java:3: package org.hibernate does not exist

...along with a bunch of other errors that are related to the compiler not finding this package.

The only files I have extracted from Hibernate are the files inthe /lib directory (as those files are the only ones that the tutorial states are required). Do I need to extract the rest of Hibernate to a global or project location?

Thanks.

BTW: I'm on a Linux system.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 05, 2006 12:09 pm 
Expert
Expert

Joined: Thu Sep 22, 2005 10:29 am
Posts: 285
Location: Almassera/Valencia/Spain/EU/Earth/Solar system/Milky Way/Local Group/Virgo Supercluster
You need hibernate3.jar.
It is located just in the root directory when you expanded hibernate. One level over lib directory.


Top
 Profile  
 
 Post subject: That did it.
PostPosted: Mon Jun 05, 2006 12:14 pm 
Newbie

Joined: Mon Jun 05, 2006 11:44 am
Posts: 11
That did the trick. I figured it was something simple. Am I going to run into problems and have to extract more and more files from the hibernate tar?

Again, all that I've extracted are the files in the /lib directory as well as hibernate3.jar (as per the previous post).

It would be nice if the instructions from the above tutorial would note that hibernate3.jar is required.

I know, it is pretty obvious that you would need hibernate3.jar. But since the instructions in the tutorial start with downloading and extracting the binaries, one cannot assume this.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 05, 2006 12:23 pm 
Expert
Expert

Joined: Thu Sep 22, 2005 10:29 am
Posts: 285
Location: Almassera/Valencia/Spain/EU/Earth/Solar system/Milky Way/Local Group/Virgo Supercluster
1.2. Part 1 - The first Hibernate Application
This is the minimum set of required libraries (note that we also copied hibernate3.jar, the main archive)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.