I recently installed tomcat6 with apt-get and have got it up and running. Ubuntu doesnt set the $CATALINA_BASE and $CATALINA_HOME environment variables during the install. How can I locate these directories, so I can manually set them?
Asked
Active
Viewed 1.3e+01k times
31
-
tomcat7: http://askubuntu.com/questions/368472/tomcat7s-catalina-home-in-debian-ubuntu – Ciro Santilli OurBigBook.com Jan 09 '15 at 09:28
-
Similar: https://askubuntu.com/q/46757/256002 – Basil Bourque May 12 '18 at 21:57
3 Answers
42
Both are stored and can be set in /etc/default/tomcat6
. By default, CATALINA_HOME is /usr/share/tomcat6
, and CATALINA_BASE is /var/lib/tomcat6
.

Iradrian
- 1,318
3
In either Tomcat6 or Tomcat7 installed with Apt-Get, find the declarations of CATALINA_HOME and CATALINA_BASE, in /etc/init.d/tomcat6 or tomcat7, and EXPORT them to the OS variables. They are then visible on a ENV command. and for use by other software.

Merlin
- 31
1
I have ubuntu v10. And I have tomcat v6 installed at which is at /usr/lib/tomcat6/...
Answer: In my system, both variables are stored in /etc/init.d/tomcat6

manan
- 11