Hello Stig,

I cannot quote where but in the Sun documentation is stated how the CLASSPATH
works.

If you point to a .jar or .zip file, then you must point directly to that file,
e.g.
    /usr/java1.2/lib/tools.jar
else if you un-jar (un-archive -- jar xvf tools.jar) the file, then you can
point to the top of the dir:
    /usr/java1.2/lib/src  -- where the archive creates the sub-dir 'src' and all
files under there

so this would also work for you (before you un-archived the file):
    <dirs>/JSDK2.0/lib/jsdk.jar
instead of this (not works unless file is un-jar'd in 'lib' dir):
    <dirs>/JSDK2.0/lib/

hope that helps,

david hall


"Townsend, Stig" wrote:

> I posted earlier about not being able to compile servlets from JDK 1.2.2.  I
> was told to set my CLASSPATH to point at a JSDK jar file (servlet.jar or
> jdsk.jar by different people).
>
> My JSDK only had a jsdk.jar, so I set my CLASSPATH to be its directory
> (<dirs>/JSDK2.0/lib).  Still got compilation failures:
>         Package javax.servlet not found in import
>         Package javax.servlet.http not found in import.
>
> I then expanded jsdk.jar so that the individual directories and classes
> appeared at the same level.  So in the lib directory there were also the
> javax and sun directories.  The servlet then compiled OK.  Any ideas why the
> .jar was insufficient?
>
> Stig Townsend
>
> Software Division, Fox IT
> (incorporating Ultracomp Ltd)
> [mailto:[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

___________________________________________________________________________
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