JAVA_HOME from /etc/profile

THUFIR HAWAT hawat.thufir at gmail.com
Sat Feb 18 12:36:57 UTC 2006


On 2/17/06, Anthony J Placilla <anthony_placilla at suth.com> wrote:
..
> > 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 at 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
..

May I ask if you use jpackage?  I note that you have java set up for
/usr/java/ from which I infer that you don't use jpackage.

Just curious how others manage this stuff :)


-Thufir




More information about the users mailing list