I met the same problem too. make sure that your classpath is set up
correctly.
try to find where the servlet.jar file is and put it in your classpath
setting.

Regards
Big Mouse

----- Original Message -----
From: Jose Alejandro Lopez Ortiz / MTI96 <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 28, 1999 8:11 AM
Subject: Fool question


> Hello All:
>
> I am new here and to servlet world. My problem is...
>
> I am trying to compile a java code and javac can't import the
> javax.servlet.* and javax.servlet.http clases. I have just used the
> default classes until now.
>
> Thanks a lot
>
>
> A T E N T A M E N T E
>
> JOSE ALEJANDRO LOPEZ
>
> On Fri, 27 Aug 1999, sarma wrote:
>
> > Thank you, It worked.
> >
> > -Sarma
> >
> > James Todd wrote:
> >
> > > with jsdk2.1 your servlets should reside in a "web application"
> > > WEB-INF/servlets directory
> > > (eg: examples/WEB-INF/servlets/Samples.class) and are invokable
> > > via a uri (eg: http://localhost:8080/examples/servlet/Sample).
> > >
> > > hope this helps,
> > >
> > > - james
> > >
> > > sarma wrote:
> > > >
> > > > I've downloaded JSDK2.1 software on my sun workstation yesterday
night.
> > > > I've read the README file and could able to start server and run all
> > > > examples programs in my netscape browser.
> > > >
> > > > After a while, I wrote a sample servlet program,then compiled and
end up
> > > > with Sample.class. Then I was trying to run it in netscape by
specifying
> > > > like
> > > >   http://localhost:8080/Sample   (I'm not sure, whether it's right
or
> > > > not).
> > > >
> > > > What wonders me is all the example executables are with extension
> > > > "html". I don't know where they got it from. Is this gets generated
on
> > > > fly when you run class file in the browser.
> > > >
> > > > Can anyone please help in my servlet bootstrap process.
> > > >
> > > > -Sri Sarma
> > > >
> > > >
___________________________________________________________________________
> > > > 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