[Logo] Mango Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
JAVA_HOME environmental variable  XML
Forum Index » Mango M2M 1.12.5 and earlier installation
Author Message
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1847
Offline

I followed the instructions.

JDK is installed under Program Files/Java.
Tomcat is installed under Program Files/Tomcat.
I moved the Mango files to the Tomcat folder as directed.

However - when I try to start Tomcat, I get the following error:

C:\Program Files\Tomcat\apache-tomcat-5.5.23\bin>startup.bat
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program

Any ideas?


What that means is that Tomcat can’t find your Java installation. There are multiple ways to fix this, but an easy one is to edit the startup.bat file, and put this at the top:

set JAVA_HOME=C:\Program Files\Java\jdk1.6.0

… substituting the right side of the ‘=’ with the path on your machine.

Another way to address this is to add a JAVA_HOME environmental variable to your system. In Windows XP, go to Start --> Control Panel --> System --> Advanced --> Environmental Variables, and add the variable to either user or system variables.

In most Linux versions you can add the lines "JAVA_HOME=..." and "export JAVA_HOME" to your .bash_profile file.

Best regards,
Matthew Lohbihler
 
Forum Index » Mango M2M 1.12.5 and earlier installation
Go to:   
Powered by JForum 2.1.9 © JForum Team