How Java Reads OS Env Variables ? - TechRepublic
General discussion
May 28, 2001 at 03:02 PM
jim lai

How Java Reads OS Env Variables ?

by jim lai . Updated 25 years ago

I am using JDK 1.3 right now. Before that I used to use System.getenv to retrieve OS env var. But getenv in 1.3 is deprecated. Is there other way to read env var ? I understand that properties file or even LDAP is the latest preferred way. But my system need to share the same env var with other concurrent systems, e.g. ApplEnv=uat …etc.

Thanks.
Jim

This discussion is locked

All Comments