The. JAVAHOME variable is used to specify location of a JDK. Using JAVAHOME provides access to certain additional startup options. JREHOME is used. If both JREHOME and JAVAHOME are specified, JREHOME is used. So, to startup this way, youll need the following set JAVAHOME. JREHOMEC Program Files x. Javajre. 7. Clearing the JAVAHOME variable is a failsafe, but its not really required. As per the docs, Tomcat will try use the JRE variable first anyway. Solution for Issue in Question. Take special note the position of the quotation marks. Install Tomcat 7 on CentOS, RHEL, or Fedora. This post will cover installing and basic configuration of Tomcat 7 on CentOS 5. CentOS 6. x Tomcat 7 implements the. I read about how to enable and disable services in Ubuntu and it seems that there are different possibilities to manage them. The first method I found is updaterc. This way keep the entire string together in one variable, without including the quotation marks in the variable content itself. For example set TESThello. Will output hello. TESThello. Will output hello. So, the startup batch file script was trying to use C Program Files x. Javajre. 7, in which the first non escaped space is between Program and Files. As already pointed out, removing the quotation marks in this particular case at least would work, but its dangerous to rely on that. Rather play it safe from the start and wrap the variable name and value in quotation marks. YOh3.png' alt='Install Tomcat 6 On Ubuntu' title='Install Tomcat 6 On Ubuntu' />How to setup FTP server on ubuntu 1.