This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
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
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\
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
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.
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.