Apache|js
Install j2sdk Either way, 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 to a directory according to the installation wizard, such as install to C:\J2SDK 1.4.1 2, add environment variable (1) If your operating system is win 98, you can edit Autoexec.bat directly with Notepad, 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 the computer so that the environment variables you add are valid.
(2) If your operating system is Win2000, configure the environment variables as follows. Right click on "My Computer", in the pop-up menu select "Properties" → "system features" → "Advanced" → "Environment variables", Pop-up Environment Variables dialog box, you can edit the system environment variables. Add path, Java_home, and classpath three variables with the same value as above.
The configuration scheme for the JSP Environment (J2SDK+TOMCAT) In this scenario, Tomcat is used as both a JSP engine and a Web server, and is relatively simple to configure. 1, install tomcat directly run the download of the Jakarta-tomcat-4.0.1.exe, according to the general installation steps of Windows program can be installed Tomcat, installed it will automatically find the location of the J2SDK. For example, install to C:\TOMCAT4. 2, configure Tomcat environment variable add a new environment variable tomcat_home, variable value is C:\TOMCAT4, add method and J2SDK environment variable configuration method. 3. After testing the default service settings, you can run the Tomcat server. Start Tomcat with C:\tomcat4\bin Tartup.exe and close with C:\tomcat4\bin Hutdown.exe. (If in the execution Startup.exe or Shutdown.exe prompt out OC environment The space error, selects the DOS Window menu "the attribute" → "the Memory" → "The conventional memory", changes "the initial environment" from "the Automatic" to "2816" It's OK. After starting Tomcat, open the browser, enter http://localhost:8080 in the Address bar (the Tomcat default port is 8080), and if you see the Tomcat welcome interface in the browser, the Tomcat is working properly.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.