I have created and exported a variable.
Now I want to access this variable by a java servlet running on a tomcat sever on the same machine.
Code:
System.getEnv("var")
But this keeps returning a null value. I have already searched the web but found the answers very confusing.