TOMCAT8 configuration Process Jre_home error, etc.

Source: Internet
Author: User

The configuration tomcat is divided into two main steps, one is to configure the installation configuration Java, and the other is to configure the Tomcat installation configuration Java: This can be followed by the online tutorial, as follows: 1.first of all, we need to download the JDK installation package, which can be downloaded from www.sun.java.com. JRE is installed automatically after installation2. Setting Environment Variables
  • After the installation is complete, open My Computer---> Properties panel

    Select Advanced system Settings












  • Select Environment Variables















  • In the system variable this block is set:

    To create a new system variable:

    Variable name: "java_home"

    Variable value: "C:\Program files\java\jdk1.7.0_51"

    Special Note: My JDK is installed in this location C:\Program files\java\jdk1.7.0_51 so just fill this out, where your own JDK is installed, just fill it out!














  • Locate the Path selection Editor in the system variable:

    At the end add "\;%java_home%\bin;

    Special note: In the last add, do not put the default delete Oh! If deleted, your part of the program will not be able to run Oh!

    END

Verify that the environment variable is configured successfully:
  • In " accessories " Find " run ", enter "cmd"








  • Re-enter Java

    If you have the following interface instructions you have configured! Your computer can run Java programs.











Download Tomcathttps://tomcat.apache.org/download after decompression as

Open path and add the corresponding lib and bin variable values: *\lib;*\bin


Go to the bin directory below:

Run Tomcat8w.exe Tomcat8.exe, prompting for the specified service is not installed unable to open the services ' TOMCAT8 '


Workaround:

open a command line prompt window = = Enter the tomcat installation directory ==> enter the bin directory ==> input: Service.bat install

Jre_home or Java_home error is an environment variable error

Java_home finally must not have \ and;

The configuration is wrong:

D:\Program Files (x86) \java\jdk1.7.0\;

D:\Program Files (x86) \java\jdk1.7.0;

Configuration is only OK:

D:\Program Files (x86) \java\jdk1.7.0




TOMCAT8 configuration Process Jre_home error, etc.

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.