-->
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.  [ 3 posts ] 
Author Message
 Post subject: java.lang.NoClassDefFoundError: org/dom4j/Node
PostPosted: Mon Dec 29, 2003 5:57 am 
Newbie

Joined: Mon Dec 29, 2003 5:51 am
Posts: 2
Hi,
we are building our first hibernate application. But we have a problem:

the exception is what we get if we use configuration

java.lang.NoClassDefFoundError: org/dom4j/Node
at files.UserMain.setUp(UserMain.java:30)
at files.UserMain.main(UserMain.java:65)
Exception in thread "main"

The line where it occurs is:

Configuration cfg = new Configuration();

Do we have to add something to our classpath, or is there something wrong with our XML files?

Who can help us?

THX

Tiny en Bart


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 29, 2003 6:18 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Read the documentation first ;)

(and then you will find out that you need to add a certain set of jars to your classpath - such as dom4j.jar)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 29, 2003 7:01 am 
Newbie

Joined: Mon Dec 29, 2003 5:51 am
Posts: 2
thanx,

we 're already a litle further...


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