Beginner |
|
Joined: Mon Jan 26, 2004 3:31 am Posts: 20 Location: Jakarta, Indonesia
|
Hi, I'm having problem with using the Schema Export tool.
I'm using Hibernate 2.1.1
I go to my classes directory, where it contains :
- hibernate.cfg.xml
- bean.hbm.xml
- and my classes files.
I don't use the hibernate.properties file
Then I type :
java net.sf.hibernate.tool.hbm2ddl.SchemaExport --config=hibernate.cfg.xml bean.hbm.xml
And it gave me this error:
net.sf.hibernate.HibernateException: hibernate.cfg.xml not found
at net.sf.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:820)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:844)
at net.sf.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:275)
|
|