-->
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: SchemaExport not working; NoClassDefFoundError
PostPosted: Mon May 08, 2006 11:01 am 
Newbie

Joined: Wed Apr 12, 2006 11:53 am
Posts: 13
Dear all,

I want to export my database schema using the SchemaExport tool, in order to recreate the database on a different machine. However, I can't get the tool to work for me. I get a NoClassDefFoundError, but without a class specified. Here's the command line call to SchemaExport:

Code:
java -cp %CLASSPATH%;E:
\java\MyLibraries\hibernate-3\hibernate3.jar org.hibernate.tool.hbm2ddl.SchemaExport --con
fig=hibernate.cfg.xml
Exception in thread "main" java.lang.NoClassDefFoundError: */;


Any ideas what the problem might be?

Cheers,

Martin


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 08, 2006 12:23 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you need to have the pojo classes in the classpath.

any reason you are not using the ant tasks which makes life much easier ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 08, 2006 12:43 pm 
Newbie

Joined: Wed Apr 12, 2006 11:53 am
Posts: 13
Thanks for the reply! In the meantime I managed to recreate the database using the porperty setting in the config file:
Code:
<property name="hibernate.hbm2ddl.auto">update</property>

I am not too familiar with Ant, hence my using the command line version of SchemaExport.

Cheers,

Martin


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.