I'm trying to set the JAVA_HOME environment variable in my .bashrc but every time I log back in it gets unset again to its original value, below is my .bashrc file
# .bashrc
# User specific aliases and functions
export JAVA_HOME=/usr/java/latest
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
What am I doing wrong? Thanks
/etc/bashrc
file. – May 03 '12 at 13:41.bashrc
instead of.profile
). – Gilles 'SO- stop being evil' May 30 '13 at 23:29