my dog learned polymorphism*
The moose likes Servlets and the fly likes Configuring packages and class paths Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Configuring packages and class paths" Watch "Configuring packages and class paths" New topic

Configuring packages and class paths

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Im pretty new to java but I am currently trying to set up a lib directory under my servlet directory to house utility classes. I also have all my servlets in individual directories under the servlet directory. I have been having many problems getting the servlet to execute when I reference the classes in my lib directory. I believe the problem is my classpath configuration because I am able to get the servlet to run when both classes are in the same directory. I am currently running Netscape iplanet for a web server. Any ideas would be appreciated. Thanks
Michael Hildner
Ranch Hand

Joined: Oct 13, 2000
Posts: 297
How are you setting your CLASSPATH? What's the fully qualified name of you classes, jars, whatever?
Consider Paul's rocket mass heater.
subject: Configuring packages and class paths
Similar Threads
java.lang.NoClassDefFoundError: javax/el/ValueExpression
Problem compiling a servlet
cannot find javax/crypto/spec/SecretKeySpec class inTomcat 6
Issue with jboss\lib\endorsed jar loading
Tomcat's default classpath??