Reading Environment Variables in Java
February 5th, 2009 by
peasleer
A quick search on google for “Reading environment variables in java” yielded a lot of (older) documentation stating that System.getEnv(”varname”) has been deprecated. This is no longer accurate, as System.getEnv(”varname”) and System.getEnv() have been reinstated as of Java 1.5. Quick post, I just wanted others to know that the API again exposes those useful method calls.
Good quick post! I’m glad Java has this whole API stability thing down…at least they’re good about leaving deprecated things around for a long time.
Feb 6th, 2009 at 1:04 am
Thanks for the comment :) I agree, it isn’t often that they break the java interfaces once they’ve released them, and the deprecation process is indeed slow. How long have some of swing’s deprecated methods been around now? Two releases?
Feb 6th, 2009 at 1:11 am