| 
					
						 Hi all,
 I tried to run the SchemaExport utility to generate the SQL schema. When I run that using 
 C:> java net.sf.hibernate.tool.hbm2ddl.SchemaExport  Player.hbm.xml Team.hbm.xml
 
 It generated the schema in the data base successfully. However I wanted to get the schema genarete SQL statements to a file. Therefor I tried to use the command with -output option as follows;
 C:> java net.sf.hibernate.tool.hbm2ddl.SchemaExport  -output="C:\hibernate-2.1\hibernate_introMyschema.sql" Player.hbm.xml Team.hbm.xml
 
 However now I'm getting the followin runtime error. Where have I gone wrong? Thanks in advance.
 
 / Nalaka
 
 
 ERROR STACK
 
 SEVERE: Could not configure datastore from file: -output=C:\hibernate-2.1\hibernate_introMyschema.sql
 java.net.MalformedURLException: -output=C:\hibernate-2.1\hibernate_introMyschema.sql (The filename, directory name, or volume la
         at org.dom4j.io.SAXReader.read(SAXReader.java:221)
         at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:169)
         at net.sf.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:289)
 Dec 8, 2004 3:31:48 PM net.sf.hibernate.tool.hbm2ddl.SchemaExport main
 SEVERE: Error creating schema
 net.sf.hibernate.MappingException: java.net.MalformedURLException: -output=C:\hibernate-2.1\hibernate_introMyschema.sql (The fil
         at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:176)
         at net.sf.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:289)
 Caused by: java.net.MalformedURLException: -output=C:\hibernate-2.1\hibernate_introMyschema.sql (The filename, directory name, o
         at org.dom4j.io.SAXReader.read(SAXReader.java:221)
         at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:169)
         ... 1 more
 net.sf.hibernate.MappingException: java.net.MalformedURLException: -output=C:\hibernate-2.1\hibernate_introMyschema.sql (The fil
         at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:176)
         at net.sf.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:289)
 Caused by: java.net.MalformedURLException: -output=C:\hibernate-2.1\hibernate_introMyschema.sql (The filename, directory name, o
         at org.dom4j.io.SAXReader.read(SAXReader.java:221)
         at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:169)
         ... 1 more 
					
  
						
					 |