Tomcat startup prompt NB: java_home shocould point to a JDK not a JRE Solution

Source: Internet
Author: User

My tomcat version is Apache-Tomcat-6.0.18 (the decompress package is used). The decompress path is E: \ apache-Tomcat-6.0.18 \ apache-Tomcat-6.0.18 \, if I deploy it in myeclipse, it can be started normally. Of course, I can also access my project, but if I start startup directly in the Tomcat source file bin. if BAT is used, it will be shown to me:

The java_home environment variable is not defined correctlythis environment variable is needed to run this programnb: java_home shocould point to a JDK not a JRE

 

Solution:

Open the startup. BAT file in Notepad. You can add set java_home = D: \ Java \ jdk1.5.0 _ 14 before the first line to set the java_home environment variable value. Note: The java_home environment variable value is your JDK installation directory.

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.