In Idea launcher Tomcat appears the JAVA_HOME environment variable is not defined correctly resolution

Source: Internet
Author: User

Situation: A set of code is compiled with JDK 1.6, and then the computer's java_home system variable with the jdk1.7, the Tomcat start times wrong

The JAVA_HOME environment variable is not defined correctly, Chinese meaning java_home definition is incorrect, go to system variables to see that the JDK 1.7, of course, is incorrect, So how do you specify a single java_home for this tomcat?

Method:

Tomcat's JRE configuration, which was originally

Change to JDK path (i.e. remove JRE)

PS: In MyEclipse Tomcat is configured with the JDK, but idea is configured with the JRE path, it is estimated that the idea is also to be a JDK path, just read from the system variables, when the JDK path, it is normal

In Idea launcher Tomcat appears the JAVA_HOME environment variable is not defined correctly resolution

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.