add path and variables bash
Im trying to install Apache Ant and it says i have do type this in Konsole:
export ANT_HOME=/usr/local/ant
export JAVA_HOME=/usr/local/jdk-1.2.2
export PATH=${PATH}:${ANT_HOME}/bin
Once i do this i can type: "ant" and the program will work. However when i close Konsole and open it up again it cant find command "ant". It appears what i have typed wasnt saved. I tried editing the .bash_profile but am unsure of the format that the above commands need to be written. Can someone tell me how to save added path and variables permanently into bash?
|