> I have a system variable named TEMP, you can use set command > to find it. > for example: > set > ... > TEMP = C:\WINNT\TEMP > ... > > I'd like to set log file like: > > log4j.appender.debug.File=$TEMP/debug.log > or > log4j.appender.debug.File=${TEMP}/debug.log > > But it did'nt work.
Indeed. There's no way of getting at environment variables in pure Java. Why did you think this would work? Try starting your VM with java -DTEST=%TEST% ... and it should work with the second form. The Java system properties are checked, not environment variables. Jon -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>