04-24-2011, 10:47 PM
was not successful. My tomcat server is running. I also tried it it Netbeans 5.0, but not able to compile it. Manually i set the CLASSPATh variable in My computers properties, so that i can compile but not. What to do?
commant prompts gives following error.
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\myapp\WEB_INF\cla sses>javac MyServlet.java MyServlet.java:2: package javax.servlet does not exist import javax.servlet.*; ^ MyServlet.java:3: package javax.servlet.http does not exist import javax.servlet.http.*; ^ MyServlet.java:4: cannot find symbol symbol: class HttpServlet
commant prompts gives following error.
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\myapp\WEB_INF\cla sses>javac MyServlet.java MyServlet.java:2: package javax.servlet does not exist import javax.servlet.*; ^ MyServlet.java:3: package javax.servlet.http does not exist import javax.servlet.http.*; ^ MyServlet.java:4: cannot find symbol symbol: class HttpServlet

mileys81: