If u specify the classpath as /usr/jakarta-tomcat/lib , compiler would
searchfir the class in Lib folder and ofcourse, he won't get the class. But
if u specify the jar file, the compiler will search for the class in the jar
file and not the folder.
Abhay
----- Original Message -----
From: William Yeo <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 15, 2000 7:07 AM
Subject: CLASSPATH?
> Hi all,
> I would appreciate if someone could tell me the answer to my
question.
> Thank you.
>
> I try to compile my servlet but the complier complains that the
package
> javax.servlet could not be found. My servlet.jar is at
> /usr/jakarta-tomcat/lib and I have included that in my $CLASSPATH. I try
to
> compile the program again, but this time I add
> /usr/jakarta-tomcat/lib/servlet.jar to my $CLASSPATH and it works fine.
Can
> anyone tell me why I have to do this? Why it works fine for other package
> like java.io when I just add /usr/jdk1.3/jre/lib to my $CLASSPATH but not
> for java.servlet?
>
> I am platform is Linux 7.0.
>
> Regards
> William
>
>
___________________________________________________________________________
> 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