I've been trying back and forth to set environment variables in the Terminal.app but it won't take any effect.
Here's the scenario: With the Terminal open I write
Then in the editor I enter
export JAVA_HOME="Library/Java/Home" export PATH=$JAVA_HOME/bin:$PATH
Then I press
ctrl+x to exit and
y to save. I exit the terminal and when I open it up again and write
I only get an empty line. Can I edit the
.profile in another way? I've tried every possible combination to set this variable but I keep getting an empty line. I have restarted the system several times with no luck at all.