mikedaruke
Technical User
Ok looks like I have no packages or classes installed. Something is wrong. I did the whole tomcat install, add all the paths, Jsp pages I see, I try to compile this servlet, from a book ( I am learning) and i get this.
TestingServlet.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
TestingServlet.java:2: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
TestingServlet.java:6: cannot find symbol
symbol: class HttpServlet
public class TestingServlet extends HttpServlet {
^
TestingServlet.java:8: cannot find symbol
symbol : class HttpServletRequest
location: class TestingServlet
public void doGet(HttpServletRequest request,
^
TestingServlet.java:9: cannot find symbol
symbol : class HttpServletResponse
location: class TestingServlet
HttpServletResponse response)
^
TestingServlet.java:10: cannot find symbol
symbol : class ServletException
location: class TestingServlet
throws ServletException, IOException {
^
6 errors
Any help?
TestingServlet.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
TestingServlet.java:2: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
TestingServlet.java:6: cannot find symbol
symbol: class HttpServlet
public class TestingServlet extends HttpServlet {
^
TestingServlet.java:8: cannot find symbol
symbol : class HttpServletRequest
location: class TestingServlet
public void doGet(HttpServletRequest request,
^
TestingServlet.java:9: cannot find symbol
symbol : class HttpServletResponse
location: class TestingServlet
HttpServletResponse response)
^
TestingServlet.java:10: cannot find symbol
symbol : class ServletException
location: class TestingServlet
throws ServletException, IOException {
^
6 errors
Any help?