-->
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: Problems with installation and classpath
PostPosted: Thu Feb 03, 2005 4:36 pm 
Newbie

Joined: Thu Feb 03, 2005 3:51 pm
Posts: 7
Hibernate version: 2.1

Name and version of the database you are using: MySQL 4.1

Hi everyone!

I am new in Hibernate and I´m having some problems.

Lets begin with the instalation issues.

1. I've downloaded Hibernate and unziped to c:\Hibernate-2.1\ folder.
2. Edit windows env. variables and add some jars files on classpath env. vars.

This is my classpath:

Quote:
Code:
"C:\Arquivos de programas\Java\jdk1.5.0\jre\lib\rt.jar;C:\Arquivos de programas\Java\jdk1.5.0\lib\tools.jar;C:\Arquivos de programas\Java\jdk1.5.0\lib\jconsole.jar;C:\Arquivos de programas\Java\jdk1.5.0\lib\comm.jar;C:\Arquivos de programas\Java\jdk1.5.0\lib\jl1.0.jar;D:\Projetos\Java\TESTEH~3\classes;c:\arquiv~1\Java\hibern~1.1\lib\cglib-full.jar;c:\arquiv~1\Java\hibern~1.1\lib\commons-collections.jar;c:\arquiv~1\Java\hibern~1.1\lib\commons-logging.jar;c:\arquiv~1\Java\hibern~1.1\lib\dom4j.jar;c:\arquiv~1\Java\hibern~1.1\lib\ehcache.jar;c:\arquiv~1\Java\hibern~1.1\lib\jdbc2_0-stdext.jar;c:\arquiv~1\Java\hibern~1.1\lib\jta.jar;c:\arquiv~1\Java\hibern~1.1\lib\odmg.jar;c:\arquiv~1\Java\hibern~1.1\lib\xerces.jar;c:\arquiv~1\Java\hibern~1.1\lib\xml-apis.jar;c:\arquiv~1\Java\hibern~1.1\hibernate2.jar"


3. Get some source from this aticle http://www.onjava.com/pub/a/onjava/2004/01/14/hibernate.html

4. And just compile. Results was fine until now.

5. Try to run the app. And we have some problems

Quote:
C:\Arquivos de programas\Java\jdk1.5.0\bin\java.exe -classpath "C:\Arquivos de programas\Java\jdk1.5.0\jre\lib\rt.jar;C:\Arquivos de programas\Java\jdk1.5.0\lib\tools.jar;C:\Arquivos de programas\Java\jdk1.5.0\lib\jconsole.jar;C:\Arquivos de programas\Java\jdk1.5.0\lib\comm.jar;C:\Arquivos de programas\Java\jdk1.5.0\lib\jl1.0.jar;D:\Projetos\Java\TESTEH~3\classes;c:\arquiv~1\Java\hibern~1.1\lib\cglib-full.jar;c:\arquiv~1\Java\hibern~1.1\lib\commons-collections.jar;c:\arquiv~1\Java\hibern~1.1\lib\commons-logging.jar;c:\arquiv~1\Java\hibern~1.1\lib\dom4j.jar;c:\arquiv~1\Java\hibern~1.1\lib\ehcache.jar;c:\arquiv~1\Java\hibern~1.1\lib\jdbc2_0-stdext.jar;c:\arquiv~1\Java\hibern~1.1\lib\jta.jar;c:\arquiv~1\Java\hibern~1.1\lib\odmg.jar;c:\arquiv~1\Java\hibern~1.1\lib\xerces.jar;c:\arquiv~1\Java\hibern~1.1\lib\xml-apis.jar;c:\arquiv~1\Java\hibern~1.1\hibernate2.jar" test.InsertProduct

Exception in thread "main" java.lang.NoClassDefFoundError: org/dom4j/Attribute

at test.InsertProduct.main(InsertProduct.java:24)

Finished executing


This is drive me crazy!!! Please Help me!!

I´ve also tried to build the eg that came with hibernate and I´ve got the same errors.


Moacir Cardoso
Quote:
Hibernate user from Brazil

_________________
Moacir Cardoso
"With no walls and fences on linux who need Windows and Gates"


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 03, 2005 7:11 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
does the dom4j.jar you refer to exist ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Problem Solved
PostPosted: Fri Feb 04, 2005 3:47 pm 
Newbie

Joined: Thu Feb 03, 2005 3:51 pm
Posts: 7
Thank's Max.

_________________
Moacir Cardoso
"With no walls and fences on linux who need Windows and Gates"


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.