Joined: Tue Mar 30, 2004 5:02 am Posts: 3 Location: Bangkok, Thailand
|
I've some problem about code genarator and schema.
1.first step : I set all possible path of the jar file by using this command.
2.second step : I try to execute this command java net.sf.hibernate.tool.hbm2java.CodeGenerator event.hbm.xml in order to generate java file for me but in this step it got some warning like this
log4j:WARN No appenders could be found for logger (net.sf.hibernate.util.DTDEntityResolver).
log4j:WARN Please initialize the log4j system properly.
However, it still can generate some file for me.
3.third step : In this step, I compile the java file that generate from the second step and I got some class file as a result.
4.forth step : In the forth step, I've got the problem. I try to using this command java -cp classpath net.sf.hibernate.tool.hbm2ddl.SchemaExport event.hbm.xml in order to export schema for me. This step can't export schema for me and it shown the exception error like this
Exception in thread "main" java.lang.NoClassDefFoundError: net/sf/hibernate/tool/hbm2ddl/SchemaExport
Anyone used to have experience about this problem.
Please Help ! Thank you a lot :(
|
|