How the JSP server is installed

Source: Internet
Author: User

First step:----Install J2SDK:
Download J2SDK installation files to the Sun official site (http://java.sun.com): j2sdk-1_4_2_04- Windows-i586-p.exe, install j2sdk after download; after installation, set environment variables: My Computer---properties---advanced---environment variables; select---system variable (S): Set the JAVA_HOME environment variable:
Click---New, enter in the variable name: Java_home in the variable value: D:\Java (assuming J2SDK is installed under directory D:\Java, it is J2SDK's installation directory anyway. Then---OK, the java_home environment variable has been set to this.
Set the CLASSPATH environment variable:
Click---New, enter in the variable name: classpath in the variable value: D:\Java\bin;.;D: \ Java\lib;d:\java\lib\dt.jar;d:\java\lib\tools.jar (The Middle dot ".") and semicolons ";" Essential. Then---OK, the CLASSPATH environment variable has been set to this.
Set the PATH environment variable:
Click---New, enter in the variable name: path in the variable value input: D:\Java;.;D: \ Java\bin (The Middle dot ".") and semicolons ";" Essential. Then---OK, the java_home environment variable has been set to this.
After the three environment variables are set up, write a simple Java program to test whether the J2SDK has been successfully installed:
Create a new directory under D:\ test, and then write the following program: public class Test {public static void main (String args[]) {System.out.println ("The is a test p Rogram. ");}}
Save the above program as a file named Test.java, and save it under directory D:\test.
Then open a command Prompt window, CD to your Test directory, and then type the following command Javac Test.java Java Test at this point if you see the print it is a test Program. If the installation is successful, if you do not print out this sentence, you need to carefully check aNew Horse CasinoUnder your configuration conditions. If the above J2SDK installation succeeds, then continue to install Tomcat:
Step Two:----Install Tomcat:
Download Tomcat to the Tomcat official site (http://www.apache.org/dist/jakarta/tomcat-4/):
Jakarta-tomcat-4.1.30.exe, install after download. (e.g. installed under D:\Tomcat.) After installation, set environment variables: My Computer---properties---advanced---environment variables; select---system variable (S):
Set the CATALINA_HOME environment variable:
Click---New, enter in the variable name: Catalina_home in the variable value: D:\Tomcat and then---OK, catalina_home environment variable has been set to this.
Set the CATALINA_BASE environment variable:
Click---New, enter in the variable name: catalina_base in the variable value: D:\Tomcat and then---OK, catalina_base environment variable has been set to this.
Then modify the environment variables in the CLASSPATH, the Tomat installation directory under the Common\lib under the Servlet.jar appended to the CLASSPATH, the modified CLASSPATH as follows: Classpath=d:\java\bin;.;D: \ Java\lib;d:\java\lib\dt.jar;d:\java\lib\tools.jar;d:\tomcat\common\lib\servlet.jar can then start Tomcat and Access HTTP//in IE localhost:8080, if you see the Tomcat Welcome page, the installation is successful.

Read Recommendation: http://blog.itpub.net/29980057/viewspace-1328430/

How the JSP server is installed

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.