Windows JSP running environment Configuration

Source: Internet
Author: User
Install JDK
First, install JDK. My JDK is installed in the C drive. The JDK root directory is C:/Java/jdk5.

Then configure the environment variable
Right-click my computer> Properties> advanced> Environment Variables

Find the path "variable" in "system variables" and click the edit button.
Then, append C:/Java/jdk5/bin to the variable value;

Create an environment variable in "system variables"
Enter classpath in "variable name"
Enter.; C:/Java/jdk5/lib
Click OK.

Create an environment variable in "system variables"
Enter java_home in "variable name"
Enter C:/Java/jdk5 in "variable value"

Click OK.

So OK.

Enter Java-version in the console

If the JDK version is displayed, the installation is successful.

Install Tomcat

I used the decompressed version. I directly decompressed tomcat to the root directory of Tomcat on drive D as D:/tomcat.

Configure the environment variables below

Right-click my computer> Properties> advanced> Environment Variables

Find the path "variable" in "system variables" and click the edit button.
Then add D:/tomcat/bin to the variable value;

Create an environment variable in "system variables"
Enter catalina_home in "variable name"
Enter D:/tomcat in "variable value"

Click OK.

Start> RUN
Enter startup in the text box and click OK.

A DOS window is displayed and the startup information is displayed. After startup

Access http: // localhost: 8080/in IE/

In this case, a web page is displayed in the browser with a kitten. This indicates that Tomcat is successfully installed.

 

Related Article

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.