the problem u r facing is that of classpath setting
...the code in your sevlet program is not able to find
the servlet package...

what u can do is to go to DOS command prompt and set
the classpath as :

set classpath=c:\TOMCAT_HOME\lib\servlet.jar

where TOMCAT_HOME is the directory where you have
installed tomcat.

hope this helps...in case it doesn't do write back

good luck :)
vivek....



--- Leon Vermaak <[EMAIL PROTECTED]> wrote:
> 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.
>
>


=====


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

___________________________________________________________________________
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