Servlet Configuration  «Prev  Next»
Lesson 2Java Servlet Development Kit
Objective Describe how to download and install the JSDK.

Java Servlet Development Kit

The JSDK is the Java Servlet Development Kit. It is a set of classes that complement the class library in the JDK, and some utilities.
You will continue to use the JDK to compile your Java code, and you will use the JSDK as a source of classes, and for its simple Web server.
We will be using version 2.1 of the JSDK in this course.
The Java Servlet Development Kit 2.1 can be downloaded from Download JSDK 2.1

It does not matter where you get the servlet classes, as long as you have them on your system, since you need them to compile your servlets. In addition to the servlet classes, you need a servlet engine, so that you can test and deploy your servlets. Your choice of servlet engine depends in part on the web servers you are running. There are three flavors of servlet engines: standalone, add-on, and embeddable.

Standalone Servlet Engines

A standalone engine is a server that includes built-in support for servlets and such an engine has the advantage that everything works right out of the box. One disadvantage, however, is that you have to wait for a new release of the web server to get the latest servlet support. As the various vendors upgrade their web servers, we expect that many of the servers will provide built-in support for servlets. Furthermore, the majority of application servers are dedicated Java servers as in the case of Tomcat.

Follow the instructions on the Sun site to download the software to your computer. The following are the basic steps:
  1. From the Product page go to the Java Servlets page
  2. Scroll down to the JSDK download area. Choose your platform and click Download.
  3. Accept the license agreement by clicking Accept (read it first).
  4. Click one of the download buttons, according to your geographical location.
  5. When your browser asks, choose to save the file to disk. Choose whatever folder you wish on your system.
  6. Run the file you downloaded and install the files it contains into a sensibly named folder on your system.
    For example, on my Windows system I expanded them into C:\JSDK2.1.
The kit, when expanded, contains the source code for the servlet classes, a simple Web server to use as a test environment for servlets,
full documentation and examples, and assorted utilities.
In the next lesson learn we will discuss how to get the JSDK working.