On Sat, 26 Jun 1999, Craig R. McClanahan wrote:
> Gaurav Kishore wrote:
>
> > I am using Apache JServ on Apache Web server on Linux.
> > I want to create images (graphs) on the fly and for that I have
> > downloaded the JPM classes of Acme Package.
> > Presently the JPM package is in a directory name Acme, and I have added
> > the path of the classes to the CLASSPATH. But still when I try to
> > compile my code, I get an error :
> >
> > "cannot access class GifEncoder; file Acme/JPM/Encoders/GifEncoder.class
> > not found"
> > import Acme.JPM.Encoders.GifEncoder;
> >
> > Though, GifEncoder.class is very much there in Acme/JPM/Encoders.
> >
> > Do I have to do anything else, to get rid of this problem.
>
> In the FAQ-O-MATIC at http://java.apache.org you will find that you
> need to add the directory above the "Acme" directory to the zone
> repositories list for your zone. Servlets don't get loaded from
> whatever CLASSPATH you have set for your compilations; they only get
> loaded from the ones you set in the configuration files.
>
> More specifically, assume that you have this particular class in file:
>
> /my/directory/Acme/JPM/Encoders/GifEncoder.class
>
> (and assuming the package name is "Acme.JPM.Encoders"), then you want the
> following line in your zone properties file:
>
> repositories=/my/directory
Well, he may need to do that eventually to get it to work, but since
his stated problem is that he can't get it to compile, doesn't that
mean that it's being caused by a different problem?
My guess is that there still is a problem with either the CLASSPATH or
the location of the files. If you (Guarav Kishore) haev double
checked and it still looks OK, perhaps it would be helpful if you
posted your CLASSPATH and the full path to those Acme files.
Also realize that there are likely different CLASSPATH's -- with the
run environment having one and the compile environment having another.
Perhaps it's not in the one in the compile environment.
Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html