I'm looking for a way to get environment variables into a
java app and am really surprised at how challenging this is proving. I tried the above code thus:
But System.getProperty(...) returns null for everything I've tried -- with and without the "%" for NT and the "$" for Unix, etc. Am I doing it wrong? Surely something as fundamental as getting env var's isn't unsupported...??