when i wanta set the environment variable for java: someone said "~/.bashrc" and someone else said "/etc/profile" or "~/.profile"
i wanta know what different from these files?
And why the commod is "export PATH=$JAVA_HOME/bin:$PATH" but "export PATH=$JAVA_HOME/bin"