I am setting the value an env. variable (say runOnEnv) in my terminal as:
export runOnEnv=dev But when I am trying t access it in my java code like:
String envVarValue = System.getenv("runOnEnv"); The value of this comes out to be null.
Am I missing something? If not how can this be done ?
System.getenv( "runOnEnv" )?