Bom dia, Estou iniciando no desenvolvimento HTML/JavaScript/CSS/Ajax /JSP/Java... Fiz a seguinte classe java p/ interação com o ajax... package beans; import java.io.IOException; import java.sql.SQLException; import javax.servlet.*; import javax.servlet.http.*; import conexao.Conexao; public class ServletAjax extends HttpServlet { /** * */ private static final long serialVersionUID = 1L; private String serv; private Conexao con = null; private String rs; protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { setServ(request.getParameter("servico").trim()); try { setRs(null); con = new Conexao(); con.executeQuery("SELECT subtipo FROM SubTipo WHERE tipo='"+serv+"'"); } catch (SQLException e) { e.printStackTrace(); } /*response.getWriter().write("");*/ } public void setServ(String valor) { this.serv = valor; } public String getServ() { return serv; } public void setRs(String valor) { this.rs = valor; } public String getRs() { return rs; } } E quando uso o javac da os seguintes erros: beans/ServletAjax.java:6: package javax.servlet does not exist import javax.servlet.*; ^ beans/ServletAjax.java:7: package javax.servlet.http does not exist import javax.servlet.http.*; ^ beans/ServletAjax.java:10: cannot find symbol symbol: class HttpServlet public class ServletAjax extends HttpServlet ^ beans/ServletAjax.java:20: cannot find symbol symbol : class HttpServletRequest location: class beans.ServletAjax protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException ^ beans/ServletAjax.java:20: cannot find symbol symbol : class HttpServletResponse location: class beans.ServletAjax protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException ^ beans/ServletAjax.java:20: cannot find symbol symbol : class ServletException location: class beans.ServletAjax protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException ^ 6 errors Minhas variaveis de ambiente estão configuradas da seguinte forma: PATH = C:\jdk1.5.0\bin JAVA_HOME = C:\jdk1.5.0 CLASSPATH = .;JAVA_HOME e todas as livrarias necessarias estão dentro da livraria do sistema...... Ambiente de desenvolvimento: eclipse = 3.4 jdk = 1.5 servidor = TomCat 5.5.17