tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <>
Subject Re: how to access tomcat conf dir from my webapp
Date Tue, 25 Jan 2011 15:37:01 GMT
2011/1/25 Stevo Slavić <>:
> String tomcatHomePath = System.getenv("CATALINA_HOME");

The above works only when starting Tomcat with .sh/.bat files and only
when CATALINA_BASE does not differ from CATALINA_HOME (see

The correct alternative would be to use  System.getProperty("catalina.base");

Best regards,
Konstantin Kolinko

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message