Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I don't have javax.servlet.*?

 
ricky gonzalez
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While compiling one of Sun's servlet examples, I got this:
BookDBServlet.java:23: package java.servlet does not exist
import java.servlet.*;
Am I missing something? Should I re-install my JDK1.3?
Thanks!
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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. http://java.sun.com/products/jsp/download.html


[This message has been edited by Carl Trusiak (edited September 14, 2000).]
 
ricky gonzalez
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THank you so much Carl....this shows my ignorance.
 
Irene Fernandez
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Irene
[This message has been edited by Irene Fernandez (edited September 20, 2000).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic