[TriLUG] Global JAVA_HOME variable?

Kevin - The Alchemist - Sonney alchemist at darkcanvas.com
Tue Mar 5 08:35:49 EST 2002


On Tue, 2002-03-05 at 08:27, Janyne Kizer wrote:
> I was wondering if there is a good way to set a system wide variable for
> JAVA_HOME?  I understand setting it in each person's .bash_profile but I
> would prefer to set it once for the system if possible so that if/when
> we change to a newer JRE we only have to change the path in one place. 

1- You can set system variables in /etc/profile
2 - I usually create a symlink from /usr/local/java to the proper
JAVA_HOME and set the system JAVA_HOME=/usr/local/java - that way, when
I upgrade the JDK, I just change the symlink, and it's done.

-- 
--------------------------------------------
--      Kevin "The Alchemist" Sonney      --
--  ICQ: 4855069            AIM: ksonney  --
--------------------------------------------
320C 0336 3BC4 13EC 4AEC  6AF2 525F CED7 7BB6 12C9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://www.trilug.org/pipermail/trilug/attachments/20020305/204254c8/attachment.pgp>


More information about the TriLUG mailing list