You must set the classpath properly.
for example, if you servlet resource is "servlet.jar" file in the path "D:\javahome\"
you must set the classpath "D:\javahome\servlet.jar"
if you servlet resource is extracted class files in the path "D:\javahome\"
just set the classpath "D:\javahome\"
how to set the classpath, in Windows you can edit the "autoexec.bat"
like this
set classpath=path1;path2;path3
the path are separated by ";"
when you run the javac or java command ,
the system will to find the required class files in the classpath one by one
- Original Message -----
From: Amar Das <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 02, 2000 4:03 AM
Subject: How to link javax
> My java code has the following line in it.
>
> import javax.servlet.http.*;
>
> while trying to compile the program I'm getting the follwoing error
> C:\ConnectionBean.java:6: package javax.servlet.http does not exist
> import javax.servlet.http.*;
>
> How can I resolve this problem. Thank you for your help.
>
> - Amar Das
>
> ___________________________________________________________________________
> 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