Installing J2SDK No matter which solution, you must complete the J2SDK installation before installing and configuring the JSP engine. 1. Install J2SDK Under Windows, run the downloaded J2SDK-1_4_1_01-windows-i586.exe file directly, install it to a directory according to the installation wizard, for example, to C: / J2SDK 1.4.1; 2, add environment variables (1) If your operating system is WIN 98, you can use Notepad to edit autoexec.bat, add the following command line: Path =% path%; C: /J2SDK1.4.1/bin set java_home = c: /j2sdk1.4.1 set classpath = C: /j2sdk1.4.1/lib/tools.jar
After saving, restart your computer so that the environment variable added is valid.
(2) If your operating system is Win2000, then configure environment variables as follows. Right-click My Computer, select "Properties" → "System Features" → "Advanced" → Environment Variables in the pop-up menu, and the Environment Variable dialog box can edit the environment variable. Add three variables in Path, Java_Home and ClassPath, and the variable value.
JSP Environment Configuration Scheme (J2SDK Tomcat) in this program Tomcat acts as a JSP engine and as a web server, the configuration is relatively simple. 1. Install Tomcat to run the downloaded Jakarta-Tomcat-4.0.1.exe, follow the general Windows program installation steps to install Tomcat, which will automatically look for the J2SDK. For example, install it to C: / Tomcat4. 2. Configuring the Tomcat environment variable Add a new environment variable tomcat_home, the variable value is C: / Tomcat4, add the method of the method to the J2SDK environment variable. 3. Test the default service settings, you can run the Tomcat server. Start Tomcat with c: /tomcat4/bin/startup.exe, close with c: /tomcat4/bin/shutdown.exe. (If you prompt the OUT OC Environment Space error while executing startup.exe or shutdown.exe, select "Properties" → "Memory" → "General Memory" in the menu of the DOS window, modify the "automatic" "2816" can be.) After launching Tomcat, open the browser, enter http: // localhost: 8080 in the address bar (Tomcat default port is 8080), if you see Tomcat's welcome interface, Tomcat works fine.