Windows Java environment variable configuration, Tomcat installation Configuration

Source: Internet
Author: User

Someone asked me how to install and configure Tomcat in windows. I 'd like to talk about a bunch of web pages. For convenience, I 'd like to paste 1 here. first download the java jdk from the official website and install it to the specified directory, such as c: \ Java 2. configure the java environment variables in my computer-> properties-> advanced-> environment variables-> system variables Add the following environment variables JAVA_HOME = C: \ Java \ jdk1.6.0 _ 02 classPath = .; % JAVA_HOME % \ lib \ dt. jar; % JAVA_HOME % \ lib \ tools. jar ;(. represents the current path; separator) path = % JAVA_HOME % \ bin now the java environment configuration is complete, start testing Hello. java public class Hello {public static void main (String args []) {System. out. println ("Java Envir is OK. ") ;}} then open Command Prompt window, cd to your Hello. in the directory where java is located, and then type the following command javac Hello. java Hello if no error is reported and "Java Envir is OK" is successfully printed. "It proves that the java environment variable is complete 3. tomcat configuration download tomcat to the directory you specified to decompress (E: \ tomcat6) configure environment variables in my computer-> properties-> advanced-> environment variables-> system variables Add the following environment variables atat_home-> E: \ tomcat6 and then modify the classPath in the environment variables, run the servlet in common \ lib under the tomat installation directory. jar is appended to classpath. The modified classpath is as follows: www.2cto.com .; % JAVA_HOME % \ lib \ dt. jar; % JAVA_HOME % \ lib \ tools. jar; % atat_home % \ common \ lib \ s Ervlet. jar; start tomcat (run startup. bat or run catalina. bat) the tomcat command line window is displayed and a bunch of startup information is automatically output. The last line is "Server startup in xxx ms ". it indicates that the startup is successful. The http: // ip: 8080 test should be okay !! Done !!!!!!!! Just so easy.

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.