Gaurav Kishore wrote:

> Hi,
>
> 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.
>
> TIA
> Gaurav

>

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

Craig McClanahan



>
> ___________________________________________________________________________
> 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

___________________________________________________________________________
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

Reply via email to