----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
On 17-Apr-2000 Jennifer Wu wrote:
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> Hi,
>
> I'm wondering if someone can tell me what's wrong with my attempts to
> set my environment variables. I'm using apache with jserv and
> servlets...
>
> I'm trying to set an environment variable in jserv.properties like this:
>
> wrapper.env=LD_LIBRARY_PATH=/test/path
>
Funny, I've had a go at this yesterday and dropped the whole 'wrapper.env'
directive since I was not able to retrieve any variable via this directive.
What I found that did work is either specify the initArgs and read them using
getInitParameter(), which was not the way for me since I wanted a
environment variable available not only to servlets but also to other classes
Waht I think you want is specifiy the environtment variable as a argument to
the JVM using wrapper.bin.parameters=-D[name]=[value]
You can retrieve this value using System.getProperty("name"), which was exactly
what I wanted. (seems to me that this is what the wrapper.env should do but
doesn't, or am I missing a point here)
--
Mphasis Media BV. Interactive architects
Wouter Boers <[EMAIL PROTECTED]> http://www.MphasiS.com
Phone: +31 (0)71 5238575 Fax: +31 (0)71 5238576
Wouter Boers <[EMAIL PROTECTED]> http://www.ikke.net
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]