File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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).]
I agree. Here's the link:
subject: I don't have javax.servlet.*?
It's not a secret anymore!