The packages are javax.servlet.* and javax.servlet.http.*, respectively.
Looks like you dropped an "x" or two.  In addition, make sure that JAR file
is in your classpath, not just the JAR's directory, i.e.
CLASSPATH=D:\jdk1.2\jre\lib\ext\servlet.jar

        -- Kyal
----------------------------------------------------
Kyallee Dalrymple           [EMAIL PROTECTED]
Software Engineer           (303)-277-1997 x108
Polygon Network, Inc.       http://www.polygon.net/
----------------------------------------------------
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Network Masters Mailbox
Sent: Monday, March 22, 1999 11:43 AM
To: [EMAIL PROTECTED]
Subject: Re: Where to install JSDK? Classpath?


I did that and it was working last week. Now it's not again:
D:\Code\Java>javac HelloWorld.java
HelloWorld.java:2: Package java.servlet not found in import.
import java.servlet.*;
       ^
HelloWorld.java:3: Package java.servlet.http not found in import.
import java.servlet.http.*;
       ^
HelloWorld.java:5: Superclass HttpServlet of class HelloWorld not found.
public class HelloWorld extends HttpServlet

It's in the right place:
D:\jdk1.2\jre\lib\ext>dir
 Volume in drive D has no label.
 Volume Serial Number is 8046-EBCE

 Directory of D:\jdk1.2\jre\lib\ext

03/18/99  02:19p        <DIR>          .
03/18/99  02:19p        <DIR>          ..
12/01/98  03:37p                83,348 iiimp.jar
02/17/99  05:59p                21,335 servlet.jar
               4 File(s)        104,683 bytes
                          1,320,878,080 bytes free



Sam Gentile                    netWork Masters, Inc.
Senior Software Engineer

(978) 264-0012  voice       [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>

(978) 264-0010  fax          www.netWorkMaster.com
<http://www.netWorkMaster.com>

Boston area based netWork Masters helps clients increase profitability
by realizing time to market goals through the successful implementation
of web, Internet and communications technology.






-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
Pratt
Sent: Thursday, March 18, 1999 3:21 PM
To: [EMAIL PROTECTED]
Subject: Re: Where to install JSDK? Classpath?


Put the servlet.jar in <jdk_root>/jre/lib/ext
    (*Chris*)

----- Original Message -----
From: Network Masters Mailbox <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 18, 1999 11:17 AM
Subject: Where to install JSDK? Classpath?


> I have the JDK 1.2 installed on a Windows NT system at d:\jdk1.2. I
> downloaded the Servlet JSDK and it does not give any instructions where to
> put the unzipped files. I tried to put them under jdk1.2. I tried
installing
> them to a separate directory d:\jsdk and then I set the System wide
> CLASSPATH to include D:\jsdk\servlet.jar and I still can't compile. I get:
>
> Package javax.servlet.http not found in import
> import javax.servlet.http.*;
>
> etc...
>
>
> Sam Gentile           netWork Masters, Inc.
> Senior Software Engineer              http://www.networkmasters.com
> [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

___________________________________________________________________________
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