Setting PATH and other variables
I want to add to my PATH and have added the following lines
JAVA_HOME=/usr/java/jdk1.5.0_04 ANT_HOME=/apache-ant-1.6.5 PATH=${PATH}:${ANT_HOME}/bin PATH=${PATH}:${JAVA_HOME}/bin export $JAVA_HOME export $ANT_HOME export $PATH first to .bash_profile and then when I couldn't get that to work I add the same lines to etc/profile After adding the files I open a new terminal session - echo $PATH shows old PATH, so I logged out and back in and got the same results so I rebooted and logged in again. When I edit the files again, the changes are there but still the PATH is the same old stuff. When I do the commands just in a terminal window they work fine. What am I doing wrong? |
Re: Setting PATH and other variables
Quote:
|
That did it. Thanks.
|
All times are GMT -5. The time now is 11:55 PM. |