Re: JAVA_HOME from /etc/profile

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

 



On Fri, 2006-02-17 at 14:24 -0500, Kam Leo wrote:
> On 2/17/06, THUFIR HAWAT <hawat.thufir@xxxxxxxxx> wrote:
> > I'm using Jpackage on FC4 and would like to use cocoon.  For reasons
> > explained on the Jpackage list, Jpackage doesn't set JAVA_HOME (I
> > don't understand the rationale, but that's a different topic).
> >
> > Presumably, the best place to set JAVA_HOME is in /etc/profile?  I
> > have about ten different JVM's, apparently.  Line's 6 and 54 of
> > /etc/profile are the same, and are supposed to set the environment
> > variable.  It's kinda working, in that something's being echoed, so
> > the variable's being set, but Cocoon is still having a problem. I
> want
> > all users to have the same JAVA_HOME setting, so don't want to do
> this
> > in the local users .bashrc, if possible.
> >
> > terminal output:
> >--

----snip for brevity---



> >
> >
> >
> > thanks,
> >
> > Thufir
> >
> 
> Lines 44-48 of /etc/profile execute scripts found in /etc/profile.d/.
> Put a shell script in /etc/profile.d/ to set your environment variable
> or path to whatever you want.


for example:

[tony@crudpuppy]$cat /etc/profile.d/java.sh

export JDK_HOME=/usr/java/jre1.5.0_01
export PATH=$PATH:$JDK_HOME/bin
export JRE_HOME=/usr/java/jre1.5.0_01
export PATH=$PATH:$JRE_HOME/bin

modify as needed for your environment

make sure to chmod it 755



-- 
Tony Placilla, RHCT
anthony_placilla@xxxxxxxx


GPG-Key-ID: 1024D/C78F8B64              http://pgp.mit.edu
Key fingerprint = A8D5 7AFF CE88 4179 C792  D9A9 F197 2A15 C78F 8B64


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

  Powered by Linux