i have set classpath=".;C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet.jar".
and compiled it as-
c:\>javac HowdyServlet.java
but the program is not compiling.
any help!!
Printable View
i have set classpath=".;C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet.jar".
and compiled it as-
c:\>javac HowdyServlet.java
but the program is not compiling.
any help!!
what error it is throwing?
the problem is with the import statement.
import javax.servlet.*;
The file name is probably servlet-api.jar.
the error:--
C:\jwork>javac Howdyservlet.java
Howdyservlet.java:3: package java.servlet.http does not exis
import java.servlet.http.*;
^
Howdyservlet.java:5: cannot find symbol
symbol: class HttpServlet
public class HowdyServlet extends HttpServlet{
^
Howdyservlet.java:6: cannot find symbol
symbol : class HttpServletRequest
location: class HowdyServlet
public void doGet(HttpServletRequest request,
^
Howdyservlet.java:7: cannot find symbol
symbol : class HttpServletResponse
location: class HowdyServlet
HttpServletResponse response)
^
its javax.servlet not java.servlet.
yes it is.
sorry for that