Hey guys,

I'm trying to read an environmental variable in Java with
Java Code:
System.getenv("FOO");
I added
Java Code:
export FOO=/some/path
to ~/.bashrc and then used source ~/.bashrc.

With
Java Code:
echo $FOO
the env variable shows up in the terminal, but if I want to retrieve this variable with
Java Code:
System.getenv("FOO");
only null is returned and I have no clue how to fix this.

Using the method on variables like "USER" etc. works just fine.

If anybody has some experience how to deal with this problem, please let me know.

Thank you very much.

Alex