This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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.