Sudsy wrote:
> 1st step in problem determination: review the EXACT messages being
> generated. Using a phrase such as "something like that" will not
> generally prompt people to reply.
> So we need to see the following:
> - the EXACT error message you get when you try to compile
Okay, "Sudsy", here is the exact error msg. which I haved been getting:
>>"C:\jakarta-tomcat-5.0.12\webapps\ROOT\WEB-INF\classes\coreservlets\HelloServlet3.java:23: cannot find symbol
symbol : variable ServletUtilities
location: class coreservlets.HelloServlet3
out.println(ServletUtilities.headWithTitle(title) + ^ 1 error
Tool completed with exit code 1"<<
> - the source
Okay, here is my source code :
>>"package coreservlets;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloServlet3 extends HttpServlet {
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
String title = "Hello (3)";
out.println(ServletUtilities.headWithTitle(title) +
"<BODY BGCOLOR=\"#FDF5E6\">\n" +
"<H1>" + title + "</H1>\n" +
"</BODY></HTML>");
}
}"<<
> - your CLASSPATH
And finally, going into my win xp Pro's System Settings, my classpath is
..;C:\jakarta-tomcat-5.0.12\common\lib\servlet-api.jar;C:\jakarta-tomcat-5.0.12\common\lib\jsp-api.jar;
C:\ServletDev;C:\j2sdk1.5.0\lib\tools.jar;C:\j2sdk ee1.3.1\lib\j2ee.jar *
* i of course have all of the classpath on just 1 line "in real life"