-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate class path problem
PostPosted: Sun May 04, 2008 6:22 pm 
Newbie

Joined: Sun May 04, 2008 6:08 pm
Posts: 1
hello

i'm using hibernate v3 and NetBeans as IDE
i've downloaded the hibernate-core, hibernate-entitymanager, hibernate-search, hibernate-shards, hibernate-validator and i've extracted them to c:\hibernate
i've created a new project (java application), i've added the path c:\hibernate to my libraries and wrote a simple class that, at this moment, only imports
org.hibernate.Session, org.hibernate.Transaction ,org.hibernate.HibernateException, org.hibernate.SessionFactory, and org.hibernate.cfg.Configuration;

when i'm tring to build the project or compile the class, i get this error: the package org.hibernate does not exists

what do i do wrong? obviously, is something wrong with my class path, but i don't know what to do :(

thanks in advance.


Top
 Profile  
 
 Post subject: suggestion
PostPosted: Tue May 06, 2008 7:15 am 
Senior
Senior

Joined: Sun Jun 11, 2006 10:41 am
Posts: 164
You need to add ALL jars to the path - not just their parent folder. i.e. you need to add:
c:\hibernate\hibernate-entitymanager.jar
c:\hibernate\hibernate3.jar
and so on.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.