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
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil