It works!

Thank you all.

-- Pat

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of James
Todd
Sent: Tuesday, November 23, 1999 12:20 AM
To: [EMAIL PROTECTED]
Subject: Re: MORE: Where to install JSDK 2.1?


try adding the servlet.jar, which includes the javax.servlet package,
to your classpath. you can do this in a number of ways:

    if your running jdk 1.2.x try copying servlet.jar to the "extension"
    directory [jdk1.2.x]/jre/lib/ext (if i recall the exact path correctly)
    so that it is picked up directly

        - or -

    add the path, the complete path and the whole path (ie
/foo/bar/servlet.jar)

    as a command line arg with the key -classpath or -cp

        - or -

    add the path, the complete path and the whole path to the CLASSPATH
    environment variable

then try javac et al.

hope this helps,

- james

Pat Willard wrote:

> This is what I thought.
>
> After running unzip, I've a directory with the following structure:
>
> c:\jsdk2.1
>      |
>      |--- etc
>      |--- examples
>      |--- src
>      |--- webpages
>      |--- default.cfg
>      |--- license.txt
>      |--- readme.txt
>      |--- server.jar
>      |--- servlet.jar
>      |--- startserver
>      |--- startserver.bat
>      |--- stopserver
>      |--- stopserver.bat
>
> Then I wrote a basic 'HiWorld.java' servlet,
> with the import statments
> import java.servlet.*;
> import javax.servlet.*;
>
> Then ran javac, resulting in the following errors:
> java.servlet not found in import.
> javax.servlet not found in import.
> Superclass HttpServlet of class HiWorld not found.
>
> Uck!! Is there something missing in my jsdk directory?
>
> Thanks for your help.
>
> -- Pat
>
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> Jianhong
> Sent: Monday, November 22, 1999 4:42 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Where to install JSDK 2.1?
>
> Hi,
>
> You can install JSDK2.1 anywhere as you like. Because the classpath of
> JDK1.2 has been registered, no need to set it.
>
> Hope this help.
>
> Jianhong
>
> ----- Original Message -----
> From: Pat Willard <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 23, 1999 7:24 AM
> Subject: Where to install JSDK 2.1?
>
> > Hi All,
> > I'm running Windows NT workstation.
> > I've succeeded in installing the JDK 1.2.2.
> > Now the question is where to install the Java Servlet Development Kit
2.1.
> >
> > I have the JSDK 2.1 zip from Sun. When upzip asks where I want
> > the files extracted to, what directory do I indicate?
> > Do I need to update the class path, and if so, what's the path?
> >
> > Thanks a lot.
> >
> > -- Pat
> >
> >
>
___________________________________________________________________________
> > 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
>
>
___________________________________________________________________________
> 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

___________________________________________________________________________
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