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

JSWDK (JavaServer Web Development Kit)

 
Kathy OConnell
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have just started looking at servlets in Java. In the book I am following, it advises downloading JSWDK to get all the classes needed. I have done this, but I do not know how to point to this file. I am getting the message package javax.servlet does not exist.
I was thinking I should refer to it in my classpath, but am having problems getting java to recognise things in my classpath.
I would really appreciate some help here
Thanks
Kathy
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you need to make servlet.jar known to your classpath. You can search this forum for "servlet.jar". It has been discussed several times. You can also just copy servlet.jar to your JDK directory\jre\lib\ext\
 
Gabriel Cane
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alternatively, you can try downloading the Java 2 Enterprise Edition Development Kit 1.3.
http://java.sun.com/j2ee/sdk_1.3/
It includes not only the servlet development kit, but a bunch of other tools and documentation as well.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kathy, welcome to the Ranch.

You mentioned : "In the book I am following, it advises downloading JSWDK to get all the classes needed. "

In honesty, this must be an old book, or a new and not very good one. the JSWDK is quite old, and has been replaced by Sun with the Reference Implementation provided by the Tomcat project.

Unless you need to use the older API, I would recommend both upgrading the book you're using and the servlet runner (switch from JSWDK to Tomcat).
http://jakarta.apache.org/site/binindex.html
On that page, under 'Release Builds' you'll find Tomcat 3.3 and Tomcat 4.0.1. Depending on the version of Servlet/JSP you want, either of these will be what you want.
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mike Curwen:
Unless you need to use the older API, I would recommend both upgrading the book you're using and the servlet runner (switch from JSWDK to Tomcat).

I wouldn't necessarily say upgrade the book. Core Servlets and JavaServer Pages uses JSWDK as one option to learn on and it is a fantastic book. If it is not that book, then upgrade to that book.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic