1 Reply Latest reply on Feb 28, 2004 8:50 AM by lpmon

    How is runtime class path set?

    lpmon Novice

      I have a servlet . I want to use classes from a jar (torque-3.1.jar)

      How / where do I add that jar to the classpath so the classloader can find them? I am getting:

      java.lang.NoClassDefFoundError: org/apache/torque/Torque

      at com.sun.ebank.web.Dispatcher.getData(Unknown Source)

      at com.sun.ebank.web.Dispatcher.doGet(Unknown Source)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

      I am experimenting with tweaking the JBoss/Sun Dukes Bank example. I may want to use Torque and was going to try a few things.

      To use Velocity I just added the velocity related jars to the war and it worked. My Torque jars are in the same place as the Velocity jars (WEB-INF/lib of the .war)