Does your /etc/profile look something like this?
export JAVA_HOME="/usr/local/java"
PATH=$PATH:$JAVA_HOME/bin
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL
Also, the contents of /etc/profile will only take effect once you've logged out and logged back in again, thus reading the new details. Have you done that?
|