»

ID #1188

When I am trying to run tomcat using startup.bat I get the "The JAVA_HOME environment variable is not defined correctly" error.

When I am trying to run tomcat using startup.bat I get the following error,

The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE

But then I try C:\>echo %java_home% and I get the following result

C:\Program Files\Java\jdk1.6.0_25\bin


Answer: JAVA_HOME should point to *C:\Program Files\Java\jdk1.6.0_25* instead of
*C:\Program Files\Java\jdk1.6.0_25\bin*. That is, without the bin folder.

Categories for this entry

Tags: defined, environment, error, java, not, tomcat, variable

Related entries: -

Last update: 2015-09-14 09:28
Author: Administrator
Revision: 1.0

Print this record Send FAQ to a friend Show this as PDF file
Rate this FAQ

Average rating: 0 (0 Votes)

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry

powered by phpMyFAQ 2.7.2