Results 1 to 2 of 2
  1. #1
    mathias is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default Error: cannot resolve symbol, help me

    Hi, I compile my HelloServlet.java and ServletUtilities.java fine in other directory, but it will not compile in this directory:
    Java Code:
    /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/coreservlets
    Java Code:
    It gave me this error:
    [root@localhost coreservlets]# javac HelloServlet.java
    HelloServlet.java:23: cannot resolve symbol
    symbol : variable ServletUtilities
    location: class coreservlets.HelloServlet
    out.println(ServletUtilities.headWithTitle(title) +
    ^
    1 error
    It is not the code error because it works on other directory.
    Thanks.

  2. #2
    henry_78 is offline Member
    Join Date
    Aug 2007
    Posts
    47
    Rep Power
    0

    Default

    Hi,
    It says that it cant find the printstream out.
    Try to be sure that the out printstream is the one of the servlet.
    Bye.

Similar Threads

  1. Replies: 2
    Last Post: 09-18-2008, 08:30 AM
  2. Cannot Resolve Symbol error...
    By seral1969 in forum New To Java
    Replies: 4
    Last Post: 02-18-2008, 01:17 AM
  3. Replies: 1
    Last Post: 12-21-2007, 12:12 PM
  4. Error: cannot find symbol
    By silvia in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 06:39 AM
  5. MySite/Valid.java:56: cannot resolve symbol
    By Albert in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 07-05-2007, 06:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •