HI all, i am using mssql server 2000,torque 3.2 to execute the sample bookstore application given in http://db.apache.org/torque/releases/torque-3.1/tutorial/step4.html
i have set the classpath property in the environment variable as CLASSPATH:-C:\Torque\torque-gen-3.2\bookstore\lib;C:\Torque\torque-gen-3.2\bookstore\bin\classes; where bookstore is the application is there anything more to add? LIB directory contains all the jars including the runtime jar(torque-3.2.jar) and the dependent jars like commons-lang,commons-collections etc compilation is working fine for me with build successful message through the command ant -f build-torque.xml compile but when i run the command java com.kazmier.Bookstore then the following error comes C:\Torque\torque-gen-3.2\bookstore>java com.kazmier.Bookstore Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/torque/om/ Persistent at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) 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) as far as i know the torque runtime jar contains the class " org.apache.torque.om.Persistent" ,then why is this error.please somebody help -- View this message in context: http://www.nabble.com/Torque-Runtime-errors%3A-NoClassDefFoundError-Exception-tp14315608p14370087.html Sent from the Apache DB - Torque Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]