while compiling give the classpath and try.. something like
javac -cp D:\tomcat\lib\servlet.jar MyServlet.java

-sourabh

----- Original Message -----
From: Leon Vermaak <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 25, 2002 12:34 PM


> Still, the problem persists. Thank you anyway.
> ----- Original Message -----
> From: "Singh, Ajit" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 25, 2002 1:40 AM
>
>
> > GO on DOS prompt  and write
> > set Classpath=%CLASSPATH%;d:\foldername1\foldername1\servlet.jar
> >
> > Hope it helps
> >
> > Ajit
> >
> > Have a nice day
> >
> >
> >
> > >  -----Original Message-----
> > > From:         Leon Vermaak <[EMAIL PROTECTED]>@MXL
> > > Sent: Monday, February 25, 2002 11:53 AM
> > > To:   [EMAIL PROTECTED]
> > > Subject:
> > >
> > >
> > > My path is fine, but in the instalation instructions for windows me it
> > > said not to specify any path that automatically it would look for the
> > > class? I find this hard to believe.
> > > I have performed a search for a javax* package on my machine, but none
> > > exists. Strange since the samples that come with tomcat are
precompiled
> > > with import javax?
> > > If you could specify how I specify the classpath I would appreciate
it.
> > > Thanks
> > >   ----- Original Message -----
> > >   From: kaustubh
> > >   To: [EMAIL PROTECTED]
> > >   Sent: Monday, February 25, 2002 12:12 AM
> > >
> > >
> > >   check your classpath & path variables for j2sdkee & jdk
> > >   I guess thats the problem
> > >   Kaustubh Vaze
> > >   Internet Programmer
> > >   [EMAIL PROTECTED]
> > >     ----- Original Message -----
> > >     From: Leon Vermaak
> > >     To: [EMAIL PROTECTED]
> > >     Sent: Monday, February 25, 2002 10:24 AM
> > >
> > >
> > >     I am new to Servlets.
> > >     I am trying to compile my fisrt Servlet. I am working on Win Me. I
> > > have:
> > >     jdk1.3.1_02
> > >     j2sdkee1.3.1
> > >     Apache Tomcat 4.0
> > >     installed.
> > >     Tomcat is working fine, but when I try to compile a simple servlet
> it
> > > does not compile. I get the following error message:
> > >     HelloWorld.java:2: package javax.servlet does not exist
> > >     import javax.servlet.*;
> > >     ^
> > >     HelloWold.java:3: package javax.servlet.http does not exist
> > >     import javax.servlet.*;
> > >     ^
> > >     So how do I tell the compiler how to find these packages?
> > >
> > >     Any help will be appreciated.
> > >
> > >   - att-1.htm << File: att-1.htm >>
> >
> >
>
___________________________________________________________________________
> > 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