Environment configuration for java JDK and Tomcat (Installation-free version)

Source: Internet
Author: User

Environment configuration for java JDK and Tomcat (Installation-free version) 1. After JDK is installed, configure the environment. Right-click the computer and choose Properties> advanced system Settings> enter environment variable 2. in the system variables, create a project variable named JAVA_HOME C: \ Program Files \ Java \ jdk1.7.0 (JDK installation path, only to the upper layer of the bin directory) CLASSPATH % JAVA_HOME % \ lib \ dt. jar; % JAVA_HOME % \ lib \ tools. jar (% between the reference, and then add the corresponding path) CATALINA_HOME D: \ Android \ Tomcat \ apache-tomcat-7.0.12-windows-x86 \ apache-tomcat-7.0.12 (Tomcat storage path) finally, add the following Variable % CATALINA_HOME % \ bin; % CATALINA_HOME % \ lib \ servlet-api.jar; % CATALINA_HO to the path ME % \ lib \ jsp-api.jar; now, after the java JDK and Tomcat environment configuration is complete, you want to determine whether the configuration is successful, the following step 1 checks whether java JDK is configured successfully. Enter the console and enter java. If "java" is not an internal or external command, or a program or batch file that can be run, the configuration is not successful. Otherwise, if something related to java appears, it means it is successful. 2. check whether Tomcat configuration is successfully entered in the bin directory of Tomcat and find startup. bat, double-click it to run. If it passes through, it may not be configured successfully (for further confirmation, enter localhost: 8080 or 127.0.0.1: 8080 in the address bar of the webpage, if there is no response, the configuration is not successful. Otherwise, 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.