Hi Vikram,
Cheers!
Regards
William
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API
Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Vikram
Gokhale
Sent: Wednesday, November 15, 2000 6:01 PM
To: [EMAIL PROTECTED]
Subject: Re: CLASSPATH?
Hi William,
The packages like java.io or java.lang etc. are
default java packages and are readily available for
java compiler. Thats why u need not include jars for
them. The packages like servler or ejb for instance
are java extensions and come in the form of jar
files. The jar file itself should be the part of
classpath. The contents of jar file are treated as
package. If there are more than one jars in the folder
and if we just set classpath to folder name without
specifying jar file, there is no way for the compiler
to know which jar file has to be used.
Hope this helps...
Vikram
--- William Yeo <[EMAIL PROTECTED]> wrote:
> 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
__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/
___________________________________________________________________________
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