JSDK (Java Servlet Development Kit) is a package containing all the classes and interfaces needed to develop servlets. JSDK also contains a web server and servlet engine to test your creations. The servlet engine provided in JSDK is a basic one(but free). There are many other servlet engines much more robust and can be interfaced with most major web servers of the market.
Get JSDK
JSDK Sun is available for download from the Sun website:
Installing JSDK
To install JSDK simply decompress the archive (using the tar command in Unix systems) or doublie-click on the executable under Windows.
Simply copy the file tree:
- either in the root directory of the JDK, no configuration is necessary.
- or in any directory. You must then update the path (PATH) and the path to the classes (CLASSPATH).
To verify that the installation was performed correctly, simply start the servletrunner utility, the servlet engine included in the JSDK, that is to say, a basic server running on port
8080. If JSDK utility is correctly installed
servletrunner should return the following lines:
servletrunner
servletrunner starting with settings :
port = 8080
backlog = 50
max handlers = 100
timeout = 5000
servletdir = ./examples
document dir = ./examples
servlet propfile = ./examples/servlet.properties
Original document published on
CommentcaMarche.net.
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
Learn more about the CCM team