[hibernate-issues] [Hibernate-JIRA] Created: (HBX-1153) How do we run hbm2ddl tool to generate schemas using .hbm.xml files
Pankaj Mittal (JIRA)
noreply at atlassian.com
Tue Nov 10 05:41:11 EST 2009
How do we run hbm2ddl tool to generate schemas using .hbm.xml files
-------------------------------------------------------------------
Key: HBX-1153
URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1153
Project: Hibernate Tools
Issue Type: Task
Reporter: Pankaj Mittal
I got the following kind of error when I tried to run hbm2ddl tool. Please suggest a method to succesfully run the tool.
C:\Users\Administrator\Desktop\classesHibernate\net\sf\hibernate\tool\hbm2ddl>ja
va SchemaUpdate
Exception in thread "main" java.lang.NoClassDefFoundError: SchemaUpdate (wrong n
ame: net/sf/hibernate/tool/hbm2ddl/SchemaUpdate)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: SchemaUpdate. Program will exit.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list