Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Servlets and the fly likes I don't have javax.servlet.*? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "I don Watch "I don New topic

I don't have javax.servlet.*?

ricky gonzalez
Ranch Hand

Joined: Jun 30, 2000
Posts: 167
While compiling one of Sun's servlet examples, I got this: package java.servlet does not exist
import java.servlet.*;
Am I missing something? Should I re-install my JDK1.3?
Carl Trusiak

Joined: Jun 13, 2000
Posts: 3340
Servlets are a seperate API from the standard jdk. You need to download it from Sun. I recommend you go ahead and get the full Java Server Development Kit which includes Servlets and JSP's etc. It can be downloaded here.

[This message has been edited by Carl Trusiak (edited September 14, 2000).]

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
ricky gonzalez
Ranch Hand

Joined: Jun 30, 2000
Posts: 167
THank you so much Carl....this shows my ignorance.
Irene Fernandez

Joined: Jan 26, 1999
Posts: 15
One more thing to watch out for:
use==> import javax.servlet.*;
The servlet classes are in package javax. I have seen some examples which leave out the x.
[This message has been edited by Irene Fernandez (edited September 20, 2000).]
Have you tried LearnNowOnline?
subject: I don't have javax.servlet.*?