If you are compiling from command line, you need to be sure those
packages are in your class path just like you would with the jdk. This
is assuming that you have downloaded the packages from Sun already. The
README within the download will explain this.
If you are using an IDE to write and compile, you need to be sure the
IDE is aware of where those packages are.....and then be sure your
current project knows to add them. For example, in Jbuilder Pro, one
would go into project properties and select these packages to be added
to the "required libraries". It's another way of saying...."hey
jbuilder, I know I added some imports for stuff you don't normally know
about, so you will require these extra libraries also to compile this
class."
Sorry that JBuilder is the only one I know, but I am sure other IDE's
have similar settings.
Good luck.
Rob
Troy Rowe wrote:
>
> Please excuse my no-brainer questions as I am a first time email list user
> as well as Java developer.
>
> For some reason I get errors saying
>
> javax.servlet not found in import
> javax.servlet.http not found in import
>
> Any suggestions where the javax directory should be located??
>
> Thanks
>
> Troy
>
> ___________________________________________________________________________
> 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