after applying necessary setting, my .bash_profile looks like this:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
export java_home=/usr/java/jdk1.6.0_20
export PATH=$java_home/bin:$PATH
unset USERNAME
Advertisement