I added the following to my .bash_profile:
JAVA_HOME=$JAVA_HOME:/usr/java/jdk1.7.0
export JAVA_HOME
However, when I echo $JAVA_HOME it outputs an empty string. Why weren't my changes to .bash_profile reflected in the shell?
|
I added the following to my
However, when I |
||||
|
You should add this to your .bashrc file, if you want it set for every interactive shell. |
|||
|
|
~/.bash_profile?~/.bash_profileis executed only when a login shell orbash --loginis started. – manatwork Oct 13 '11 at 10:08JAVA_HOMEset to a list of paths. I have a bad feeling regarding its correctness, so I prefer not to participate in this, beyond a simple comment. – manatwork Oct 14 '11 at 6:31