Do you have class x at $HOME/Packages/a/b/c/x?

Cheers!
Mark

----- Original Message -----
From: "Bob Fyfe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 4:44 PM
Subject: CLASSPATH struggles


> I'm have a bit of a struggle with what I think is a CLASSPATH
problem.
>
> I want to put a class (x.java) into a package. It contains the
> following package statement:
>
> package a.b.c
>
> I compile it in the following way on a unix (Solaris) box:
>
> %javac -d $HOME/Packages
>
> which creates x.class in $HOME/Packages/a/b/c
>
> I modify my CLASSPATH variable to include $HOME/Packages and
'source'
> it. Echoing it's value reveals that it is now including
> $HOME/Packages.
>
> Life is grand.
>
> I want a servlet to have access to it and so in writing the
servlet I
> include the following import statement:
>
> import a.b.c.x
>
> I compile it and it compiles.
>
> I move my servlet into a servlets directory and when I try to
execute
> it it blows up because it cannot find this 'x' class.
>
> For the record,  it is running an apache server with jserv. I'd
give
> the particulars of those if it matters.
>
> I give.
>
>
> bob
>
> --
>
*****************************************************************
> *Bob Fyfe,      KG8FU,  NREMT-P "A King's Kid" John 1.12
*
>
*****************************************************************
> *Phone:    (419) 372-2103
*
> *Internet: [EMAIL PROTECTED]
*
> *U.S.Post: c/o Information Technology Services
*
> *       Rm.254 Hayes, BGSU
*
> *       Bowling Green, OH 43403
*
>
*****************************************************************
>
>
_________________________________________________________________
__________
> 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