RE: Obtain catalina-home variable

2008-06-02 Thread Narendra Sharma
e.org Subject: Re: Obtain catalina-home variable Thanks a lot. Konstantin Kolinko wrote: > > Yes, it is OK for all operating systems. > > > 2008/5/29 maux <[EMAIL PROTECTED]>: >> >> Hi Konstantin, >> >> That´s exactly what i wanted. But if I used >&g

Re: Obtain catalina-home variable

2008-06-02 Thread maux
Thanks a lot. Konstantin Kolinko wrote: > > Yes, it is OK for all operating systems. > > > 2008/5/29 maux <[EMAIL PROTECTED]>: >> >> Hi Konstantin, >> >> That´s exactly what i wanted. But if I used >> "System.getProperty("catalina.home")", that is ok for windows and for >> linux >> Tomcat inst

Re: Obtain catalina-home variable

2008-05-29 Thread Konstantin Kolinko
Yes, it is OK for all operating systems. 2008/5/29 maux <[EMAIL PROTECTED]>: > > Hi Konstantin, > > That´s exactly what i wanted. But if I used > "System.getProperty("catalina.home")", that is ok for windows and for linux > Tomcat installation or is it only valid for windows? > > Thank you very m

Re: Obtain catalina-home variable

2008-05-29 Thread maux
Hi Konstantin, That´s exactly what i wanted. But if I used "System.getProperty("catalina.home")", that is ok for windows and for linux Tomcat installation or is it only valid for windows? Thank you very much. Konstantin Kolinko wrote: > > The answer is correct as a direct match to the questio

Re: Obtain catalina-home variable

2008-05-28 Thread Konstantin Kolinko
The answer is correct as a direct match to the question, but I would recommend using the following code instead: System.getProperty("catalina.home") System.getProperty("catalina.base") The catalina.bat / catalina.sh script passes values of CATALINA_* environment variables as system properties, w

Re: Obtain catalina-home variable

2008-05-28 Thread maux
Thanks for your help, Mark. But one more question, with that method i have to add the CATALINA_HOME variable to the environment variables, don´t I? I have seen that when you install Tomcat, if you press twice the icon of Tomcat that appears on the task bar, there is a variable with the route of

Re: Obtain catalina-home variable

2008-05-28 Thread Mark Thomas
maux wrote: Hi, I would like to know how can i catch the catalina_home variable in a java code. Thanks in advance. System.getenv() Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL