Re: where to append path

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

 



On Tuesday 11 November 2003 14:06, shane c branch wrote:
> as i understand it, if one wants to make system wide enviroment
> changes, then he should edit /etc/profile on a red hat system.
>
> i have installed a JRE, but it requires i make this change manually,
> and i examined /etc/profile, but it is not clear to me where i should
> add the path to the JRE.
>
> could someone clear this up, please? i checked google, but what it
> came up with didn't look like what i see on my machine. no PATH=
> statement.

Make your own file in /etc/profile.d/

Name it "java.sh" or something similar.

Content would be:

JAVA_HOME=/path/to/java
PATH=$PATH:$JAVA_HOME/bin
export JAVA_HOME PATH

-- 
Jesse Keating RHCE MCSE (geek.j2solutions.net)
Fedora Legacy Team      (www.fedora.us/wiki/FedoraLegacy)
Mondo DevTeam           (www.mondorescue.org)
GPG Public Key          (geek.j2solutions.net/jkeating.j2solutions.pub)
 
Was I helpful?  Let others know:
 http://svcs.affero.net/rm.php?r=jkeating

Attachment: pgp00625.pgp
Description: signature


[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux