Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » javax.servlet.* not recognized
javax.servlet.* not recognized [message #472662] Fri, 07 July 2006 19:00 Go to next message
Brian is currently offline Brian
Messages: 34
Registered: July 2009
Member
I'm trying to develop a class that extends the HttpServlet Interface.
When I go to import the correct files namely javax.servlet.* and
javax.servlet.http.* I get an error stating the files (or class files I'm
not sure what they are called) are not recognized. How do you go about
creating servlets with an eclipse compiler? I've seen where there is a
download at Sun's site that has those files in it but I don't know where
to unzip the download to.

Brian McRaven
Re: javax.servlet.* not recognized [message #472664 is a reply to message #472662] Fri, 07 July 2006 23:35 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
Hi Brian,

Please repost your question to the main webtools forum
( http://www.eclipse.org/newsportal/thread.php?group=eclipse.w ebtools).
This forum is focussed on tooling for JavaServer Faces under Eclipse.


--Cam


Brian wrote:

> I'm trying to develop a class that extends the HttpServlet Interface.
> When I go to import the correct files namely javax.servlet.* and
> javax.servlet.http.* I get an error stating the files (or class files I'm
> not sure what they are called) are not recognized. How do you go about
> creating servlets with an eclipse compiler? I've seen where there is a
> download at Sun's site that has those files in it but I don't know where
> to unzip the download to.

> Brian McRaven
Re: javax.servlet.* not recognized [message #472666 is a reply to message #472662] Sat, 08 July 2006 00:00 Go to previous message
Brian is currently offline Brian
Messages: 34
Registered: July 2009
Member
I posted this question on Sun's Forum site and this is the response I got
back:

In the Package Explorer view right click on your project folder. Select
the "build path/configure build path" option. Click on the libraries tab.
Click on the "add external jars" button. Navigate to the location where
you installed the Sun J2EE j2ee.jar file (or what ever else jar file has
the servlet package) and select it. Click open. Click okay. Go back and
right click on the project folder and this time refresh the project.

In my case, and this might apply to everyone who tries to do this, I
downloaded a zip file at Sun's website. You place that zip file in
whatever folder you deem appropiate and then do the above except your
looking for a zip file. The add external jars button leads to a form
field that looks for either a jar or a zip file. I haven't managed to
make my servlet work yet but I have a book I'm referencing and I think
everything will work out on that end.

Brian
Re: javax.servlet.* not recognized [message #603408 is a reply to message #472662] Fri, 07 July 2006 23:35 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
Hi Brian,

Please repost your question to the main webtools forum
( http://www.eclipse.org/newsportal/thread.php?group=eclipse.w ebtools).
This forum is focussed on tooling for JavaServer Faces under Eclipse.


--Cam


Brian wrote:

> I'm trying to develop a class that extends the HttpServlet Interface.
> When I go to import the correct files namely javax.servlet.* and
> javax.servlet.http.* I get an error stating the files (or class files I'm
> not sure what they are called) are not recognized. How do you go about
> creating servlets with an eclipse compiler? I've seen where there is a
> download at Sun's site that has those files in it but I don't know where
> to unzip the download to.

> Brian McRaven
Re: javax.servlet.* not recognized [message #603415 is a reply to message #472662] Sat, 08 July 2006 00:00 Go to previous message
Brian is currently offline Brian
Messages: 34
Registered: July 2009
Member
I posted this question on Sun's Forum site and this is the response I got
back:

In the Package Explorer view right click on your project folder. Select
the "build path/configure build path" option. Click on the libraries tab.
Click on the "add external jars" button. Navigate to the location where
you installed the Sun J2EE j2ee.jar file (or what ever else jar file has
the servlet package) and select it. Click open. Click okay. Go back and
right click on the project folder and this time refresh the project.

In my case, and this might apply to everyone who tries to do this, I
downloaded a zip file at Sun's website. You place that zip file in
whatever folder you deem appropiate and then do the above except your
looking for a zip file. The add external jars button leads to a form
field that looks for either a jar or a zip file. I haven't managed to
make my servlet work yet but I have a book I'm referencing and I think
everything will work out on that end.

Brian
Previous Topic:javax.servlet.* not recognized
Next Topic:tutorial problem
Goto Forum:
  


Current Time: Tue Sep 16 13:39:35 GMT 2014

Powered by FUDForum. Page generated in 0.03076 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software