I have a Hibernate appps. It runs on Eclipse IDE (in class files format), it works fine. But when I packages it to jar file, and run it using command prompt, it hit error.
Quote:
java.lang.NoClassDefFoundError: org/hibernate/Session
at com.flextronics.fftester.Client.main(Client.java:103)
Caused by: java.lang.ClassNotFoundException: org.hibernate.Session
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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 1 more
My question is, how to capture the command executed by Eclipse, so that I cna re-use it on command prompt?