-->
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: java.lang.NoClassDefFoundError:
PostPosted: Tue Sep 09, 2003 3:51 pm 
Newbie

Joined: Tue Sep 09, 2003 3:40 pm
Posts: 9
I got the following error:

java.lang.NoClassDefFoundError:
net/sf/hibernate/cfg/Configuration

while trying to do the following:

SessionFactory sf = new Configuration().configure().buildSessionFactory();

I am wondering what I missed?

thanks,


Top
 Profile  
 
 Post subject: Slim on information, but I will try
PostPosted: Mon Oct 20, 2003 2:45 pm 
Newbie

Joined: Mon Oct 20, 2003 2:30 pm
Posts: 1
Location: Arizona
That error usually means that you are missing some of the required classes from your classpath.

You will want to make sure that you have all the proper jar files in your classpath -- I cannot rememer the main hibernate jar name right now, but it may be something like hibernate.jar.
If that does not work, you may want to add some logging or a stack trace in there somewhere to help give you clues.

Hope this helps,

_________________
Christopher J. Stehno
chris@stehno.com


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.