posted 21 years ago
Hi David,
Some options for you:
Edit the file <code>.bash_profile</code> (note the leading period) in your home directory. Put your path statment into there. Whenever you log in, this file is executed, and so the path should be set. (If you are using a different shell than bash, ask and someone can tell you the apropriate profile).
Alternatively, if this is something that all users are likely to want in their environment, then you could ask the administrator to add a file to the <code>/etc/profile.d/</code> directory. I have one in there called java.sh containing:<code><pre>
export JAVA_HOME=/usr/java/j2sdk1.4.0_01
export ANT_HOME=/opt/jakarta-ant-1.4.1
export PATH=${PATH}:${JAVA_HOME}/bin:${ANT_HOME}/bin:
</pre></code>
This gets executed for all users, and sets the environment correctly for them all.
Regards, Andrew