-->
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: hbm2java newbie problems
PostPosted: Fri Feb 27, 2004 6:45 pm 
Beginner
Beginner

Joined: Thu Feb 26, 2004 11:32 am
Posts: 32
Hi:
I am trying to use hbm2java(hibernate-extensions-2.0.2) with hibernate 2.1. I have a couple of questions :

Is it okay to have differentversions for hibernate and hibernate-extensions ?

When I invoke hbm2java.bat I get the following error message:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/MultiMap

I have commons-collections-2.1.jar in my claspath.

any pointers would be greatly appreciated

thanks

palash


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 27, 2004 9:59 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The release numbers for the tools don't follow hibernates. Not sure about your class path problem. My guess is that most users are using the Ant task. You could also review the JAOO Tools bundle we created - the tools and hibernate jars are older than current versions but it is setup and may provide a good starting point.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 27, 2004 2:20 pm 
Newbie

Joined: Sat Mar 27, 2004 2:00 pm
Posts: 1
Location: Porto Alegre, RS Brazil
As you can see, hbm2java.bat (below) calls setenv.bat:

[code]
call setenv.bat
java -cp %CP% net.sf.hibernate.tool.hbm2java.CodeGenerator %*
[code]

So, you must have CP environment variable set accordingly.
If your setenv.bat says, for example:

[code]
set CP=...;%CORELIB%\commons-collections.jar;...
[code]

but if %HIBERNATE_HOME%\lib contains commons-collections-2.1.jar, it will not work, since the jars have different names. The same applies to all jars in the %CP%.

Just my 2 cents, maybe it helps.

Jeferson Charles Mayer[/i][/quote][/code]


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.