Caldarale, Charles R wrote:
> environment variables. System.getenv() does access environment
> variables, but its use is discouraged, since the API is deprecated.
No, since 1.5 it isn't deprecated any more.
Regards
mks
-
To u
> From: marju jalloh [mailto:[EMAIL PROTECTED]
> Subject: Re: How to access webapps class path as env variable.
>
> make an enviroment variable WEBAPPS-PATH in your profile
> an call
> String strDir = System.getProperty("WEBAPPS-PATH");
Besides being unnecessary
If you need more than Chuck's suggestion, all the configuration information
about webapps (i.e. directories where classes, files, and and documents live)
is already available via Tomcat MBeans. This will eliminate the need for an
environment variable and create flexibility. You can use JConsole
cat Users List"
Sent: Wednesday, December 14, 2005 14:46
Subject: Re: How to access webapps class path as env variable.
make an enviroment variable WEBAPPS-PATH in your profile
an call
String strDir = System.getProperty("WEBAPPS-PATH");
Hope it helps
Marju
Saha Rabindra N <[EM
make an enviroment variable WEBAPPS-PATH in your profile
an call
String strDir = System.getProperty("WEBAPPS-PATH");
Hope it helps
Marju
Saha Rabindra N <[EMAIL PROTECTED]> wrote:
Hi,
I am trying to access the webapps class path through some environment variable.
Can you tell me
> From: Saha Rabindra N [mailto:[EMAIL PROTECTED]
> Subject: How to access webapps class path as env variable.
>
> I have a ini file placed in my webapps class folder which I
> need to read at runtime. If there is no such environment
> variable available, then can you please tell me if there is