how do you edit /etc/profile?
Alexander Dalloz
alexander.dalloz at uni-bielefeld.de
Fri Aug 6 02:49:24 UTC 2004
Am Fr, den 06.08.2004 schrieb Michael Mallete um 4:41:
> how do you make export PATH={...something here...}
> global (that is for all users)? (eq. export
> PATH=$PATH:$JAVA_HOME/bin) i've read somewhere that
> you have to add it to /etc/profile. but i don't really
> know how to. help!
>
> -Myk
$ ls -al /etc/profile.d/java.sh
-rwxr-xr-x 1 root root 192 21. Jul 03:20 /etc/profile.d/java.sh
$ cat /etc/profile.d/java.sh
JAVA_VERSION="j2re1.4.2_04"
if [ -d /usr/java/${JAVA_VERSION} ]; then
export JAVA_HOME="/usr/java/${JAVA_VERSION}"
export JAVA_PATH="${JAVA_HOME}"
export PATH="$PATH:${JAVA_HOME}/bin"
fi
So create that file executable and maybe adjust the J2RE version number
if you have a different version installed.
Alexander
--
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 2 (Tettnang) kernel 2.6.7-1.494.2.2smp
Serendipity 04:47:14 up 1 day, 22:14, load average: 0.70, 0.51, 0.33
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040806/33c0522a/attachment-0001.sig>
More information about the fedora-list
mailing list