As an initiator to learn JSP technology, JSWDK should be a good choice, although there is also a good application server software, for example: JRun, WebLogic, Apache, Resin, etc. However, the JSWDK configuration is simple, and it is also very simple. Below I will explain the configuration of JSWDK in the Windows operating system (Windows9x, Windows2000, WindowsXP).
Essential three-like software: 1.JRE Java runtime; 2.jdk Java standard development package; 3.jswdk Java server network development package. These three software can be available free of charge at www.sun.com. When you have these three things, you can start configuring a JSP running environment. First install JRE, install it in the root directory of the hard disk, followed by installing JDK, and installing her on the root directory of the hard disk. After the two installations, you will start to configure the autoexec.bat file (whether Win9x, win2000, winxp can find her), select this file, click the mouse button to edit this file, add the following statement: set path =, D: /jdk1.4.1/bin; (here pointing out the position of the Java virtual machine), set java_home = d: /jdk1.4.1/lib; d: /jdk1.4.1/bin; set classpath =, d: /jdk1.4.1/ Lib / Tools.jar; (above the above path only as an example reference, specific writing to the personal installation path). After the JDK is configured, the JSWDK is decompressed into the root directory of the hard disk (JSWDK is not installed without installing, you can use it directly), open the JSWDK folder, you can see Webserver.xml, StartServer.bat, StopServer . bat three files, as well as the examples folder. Open the webserver.xml with a writing board to find the following line:
Port NMToken "8080"
Hostname NMToken ""
INET NMTOKEN ""
Doc base cdata "WebPages"
Workdir CData "Work"
This is the set port number and the publishing directory host name. How do you like it?
Then open the StartServer.bat file with Notepad, find the following line:
Set classpath =% AppClassPath%;% sysjars%
Change it to:
Set classpath =% AppClassPath%;% sysjars%; d: /jdk1.4.1/lib/tools.jar
In addition, in Win9x, Win2000, modify the properties of StartServer.bat, set its initial environment to 2816, preferably 4096, do not need to manage it in WinXP (I don't know how to set it in XP) This is a JSWDK because it is successful when running StartServer.bat, if you see the following text is successful:
Jswdk Webserver Version 1.0.1Loaded Configuration from: File: f: /jswdk/webserver.xmlendpoint Created: localhost / 127.0.1: 8080
If you can't see it, you will explain that in StartServer.bat.