Forums Register Login

Servlet package not available

+Pie Number of slices to send: Send
Even if I had set the class path for servlet API still while compiling it is showing the error that showing that

AdditionServlet.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
AdditionServlet.java:3: cannot find symbol
symbol: class GenericServlet
public class AdditionServlet extends GenericServlet
^
AdditionServlet.java:5: cannot find symbol
symbol : class ServletRequest
location: class AdditionServlet
public void service(ServletRequest request,ServletResponse response)throws IOException{
^
AdditionServlet.java:5: cannot find symbol
symbol : class ServletResponse
location: class AdditionServlet
public void service(ServletRequest request,ServletResponse response)throws IOException{
^
4 errors
Hey guys I'm correct as far I know but can't find out the cause.Please give the reason for the Error.
Thanks in adv.
2
+Pie Number of slices to send: Send
How are you setting the classpath?
I'm sure glad that he's gone. Now I can read this tiny ad in peace!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 502 times.
Similar Threads
problem in compiling servlet/jsp
getServletContext() and getServletName()
how to cross over "javax.servlet.* not found " problem?
GenericServlet
HelloServlet can not compile
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 00:47:05.