I have inserted the following lines in .bash_profile
export GOOGLE_APPLICATION_CREDENTIALS=/Users/jun/Downloads
export PATH=$PATH:GOOGLE_APPLICATION_CREDENTIALS
and the changes did take effect
However, when I try to access the environment variable with the following method
System.out.println(System.getenv("GOOGLE_APPLICATION_CREDENTIALS"));
The result is NULL
Why is that?
Note: The application is ran with Eclipse.