Cannot find symbol

Hi,

I have the following code. I have come accross the importing libraries problem. I have download and installed the com.oreilly.servlet (cos.jar) in WEB-INF/lib catalog. But when I try to compile I get the following message:

cannot find symbol symbol: variable ServletUtils

location: class com.oreilly.servlet.Main

ServeltUtils.returnURL(URLhtml, out);

package com.oreilly.servlet;

import com.oreilly.servlet.*;

import java.io.*;

import java.net.*;

import java.lang.*;

import javax.servlet.*;

import javax.servlet.http.*;

publicclass Mainextends HttpServlet{

protectedvoid processRequest(HttpServletRequest request, HttpServletResponse response)

throws ServletException, IOException{

response.setContentType("text/plain; charset=ISO-8859-2");

ServletOutputStream out = response.getOutputStream();

URL URLhtml =new URL("http://localhost:8084/HelloWorld/XHTML.html");

if (i>0){

try{

ServletUtils.returnURL(URLhtml, out);

}catch (IOException e){System.out.println("File XHTML.html not found");}

}

}

I don't know why.

Thanks for help

Message was edited by:

rypki

[2114 byte] By [rypkia] at [2007-10-2 22:47:55]
# 1
I have fixed the problem. There was no need to put the "package com.oreilly.servlet;". I only had to copy to WEB-INF/classes/com/oreilly/servletall class files from com oreilly servlet.
rypkia at 2007-7-14 6:02:16 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2

I am having an error associated with URL unresolved symbol...

ImageApp.java:38: cannot find symbol

symbol : class URL

location: class ImageApp

icon = new ImageIcon(new URL("http://aeolus/work/screen.gif"));

I am using the correct libraries and refrence matterial but no good. The Japplet wont compile. I was wondering if this issue could be related to the one you had earlier?

If so would it help to load the orielly package?

cschatz

cschatza at 2007-7-14 6:02:16 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...