Hello,
I tested this approach with a normal java application. If I start my
JVM as
java -DCONF_PATH=$CONF_PATH MyClass
then I can print the value of the CONF_PATH from MyClass using
System.out.println( System.getProperty("CONF_PATH") ) ;
Please let me know if this is a bug in JRun. I also noticed this problem
with JRun 2.3.
Thanks,
Suresh
>-----Original Message-----
>From: EXT Scott Stirling [mailto:[EMAIL PROTECTED]]
>Sent: 13. September 2000 3:44
>To: [EMAIL PROTECTED]
>Subject: RE: Passing environment variables
>
>
>I don't the JVM knows how to expand OS environment variables.
>Have you seen
>that it can? I would expect it to take that argument as a
>literal string like
>it did.
>
>Scott Stirling
>Allaire
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, September 12, 2000 7:14 AM
>> To: [EMAIL PROTECTED]
>> Subject: Passing environment variables
>>
>>
>> Hello all,
>>
>> I am facing a problem with passing environment variables to
>the JVM through
>> the JMC of JRun3.0 on HP-UX 11.xx.
>>
>> I added the following in JRun Default Server --> Java
>Settings --> Java
>> Arguments
>> section.
>>
>> -DCONF_PATH=$CONF_PATH
>>
>> When I am accessing CONF_PATH from my servlet using
>>
>> System.getProperty("CONF_PATH")
>>
>> the value I get is $CONF_PATH, but not the value of the
>CONF_PATH variable.
>> Please let me know if there is any workaround for this.
>>
>> Thanks,
>> Suresh
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.