Install and configure JDK and TomCat

Source: Internet
Author: User

Install and configure the installation package for JDK, Tomcat, and myEclipse

JAVA Runtime Environment package

JDK1.7: http://www.veryhuo.com/down/html/43205.html

Jsp project running server [Tomcat], similar to IIS

Tomcat5.0 and later versions: http://www.liangchan.net/liangchan/2429.html

MyEclipse8.5 Jsp development tool

MyEclipse8.5 [cracked version] http://www.cr173.com/soft/11547.html

 

Decompress the above package for Installation

 

How to configure environment variables for JDK and Tomcat

JDK environment variable Configuration:

Right-click my computer and choose Properties> advanced system Settings> environment variables]

 

The parameters are as follows:

JDK installation package directory

JAVA_HOME JDK: F: \ developSoft \ eclipse \ androidjdk \ jdk-7u1-windows-7.0

Path: % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin

Tomcat configuration:

CLASSPATH:.; % JAVA_HOME % \ lib \ tools. jar; % CATALINA_HOME % \ common \ lib \ servlet-api.jar;

TomCat installation directory

CATALINA_HOME: C: \ Program Files \ Apache Software Foundation \ Tomcat 5.0

CATALINA_BASE: C: \ Program Files \ Apache Software Foundation \ Tomcat 5.0

TOMCAT_HOME: C: \ Program Files \ Apache Software Foundation \ Tomcat 5.0

 

Detect JDK and Tomcat

DetectionJDK

1) Run "cmd" and input java-version.

 

The current JDK version is displayed here.

2) Write Verification Code

Right-click myEclipse and create a java project.

 

Add the primary method for verification:

Public Static VoidMain (String [] args ){

//TODOAuto-generated method stub

System.Out. Println ("welcome the java world ");

}

Start running and find output;

 

 

Detect TomCat

Check based on the configured TomCat Port

 

View: C: \ Program Files \ Apache Software Foundation \ Tomcat 5.0 \ conf \ server. xml the Configuration Port is 8888

Open IE and enter http: // localhost: 8888/

The TomCat homepage appears:

 

 

Note: The above two points indicate that the configuration is successful.

 

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.