Hi all,
I am trying to compile a servlet, and am getting the following error.
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\flatironswp1\WEB-INF\classes>javac export\ExportUtil.java
export\ExportUtil.java:5: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
and here's my code:
package export;
import java.io.*;
import javax.servlet.http.*;
import javax.servlet.*;
public class ExportUtil extends HttpServlet {
public void doGet (HttpServletRequest req,
HttpServletResponse res)
throws ServletException, IOException
{
PrintWriter out = res.getWriter();
out.println("blah, blah...!");
out.close();
}
}
Do I need any jars or something in my classpath? please suggest.
Thanks.