bien he compilado el sig. codigo
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HolaMundo extends HttpServlet
{
protected void procesarPeticion(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
{
response.setContentType("text/html");
PrintWrite out=response.getWriter();
out.println("<html>");
out.println("<head>");
out.println("<title>Servelet HolaMundo</title>");
out.println("</head>");
out.println("<body>");
out.println("<font size=7>");
out.println("¡¡Hola mundo!!");
out.println("</font>");
out.println("</body>");
out.println("</html>");
out.close();
}
protected void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
{
procesarPeticion(request, response);
}
protected void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
{
procesarPeticion(request, response);
}
public String getServeletInfo()
{
return "Servlet HolaMundo";
}
}
y me da este error,
java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
Exception in thread "main"
Process completed.
que es y como puedo solucionarlo. Gracias de antemano.