Joined: Mon Jun 14, 2010 3:10 am Posts: 1
|
I have recently installed Hibernate3.0, I am running this program thru command prompt and I am getting the following error. I have copied the jar files into the classpath.
E:\Mansi programs\Advanced Java\Hibernate>java AddEmployee 22 Mansi 50000 Exception in thread "main" java.lang.NoClassDefFoundError: AddEmployee Caused by: java.lang.ClassNotFoundException: AddEmployee at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Could not find the main class: AddEmployee. Program will exit.
Can anyone help me with the above problem?
|
|