Re: how do you edit /etc/profile?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ah. so you mean execute this in bash:

$ ls -al /etc/profile.d/java.sh
$ cat /etc/profile.d/java.sh

then add this to /etc/profile/

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

sorry if i'm a bit slow. :)

-Myk


>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


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux