Hi, I have these 2 codes both placed in the same package called moreservlets.one file is called serutilities.java and the other called helloservlet.java.helloservlet.java uses serutilities.java.I have put c:\moreservlets in my classspath along with "." but my file helloservlet does not compile it gives an error on the line where i use a static method from serutilities.java in helloservlet.java.The access modifier is public for both classes.Can u help me out with what the error might be??
Hi Madhu, The servlet engines that I have worked with all use their own CLASSPATH -- which is totally independent of yours! So you need to configure your servlet engine's CLASSPATH -- to include "C:\moreservlets". How you configure the servlet engine's classpath depends on the servlet engine you are using -- but I'm sure the details can be found in the documentation (for your servlet engine). Hope this helps. Good Luck, Avi.